Genesis 45:8
8 So it was not you who sent me here, but God. He has made me a father to Pharaoh, and lord of all his house and vruler over all the land of Egypt.
Genesis 50:20
20 As for you, you meant evil against me, but iGod meant it for good, to bring it about that many people1 should be kept alive, as they are today.