Genesis 45:5
45:5 Now, do not be upset and do not be angry with yourselves because you sold me here, for God sent me ahead of you to preserve life!
Genesis 45:7-8
45:7 God sent me ahead of you to preserve you on the earth and to save your lives by a great deliverance.
45:8 So now, it is not you who sent me here, but God. He has made me an adviser to Pharaoh, lord over all his household, and ruler over all the land of Egypt.
Genesis 50:20
50:20 As for you, you meant to harm me, but God intended it for a good purpose, so he could preserve the lives of many people, as you can see this day.