Genesis 45:5-8
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!
45:6 For these past two years there has been famine in the land and for five more years there will be neither plowing nor harvesting.
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.