Genesis 45:5-8
5 And now, do not be distressed and do not be angry with yourselves for selling me here, because it was to save lives that God sent me ahead of you. 6 For two years now there has been famine in the land, and for the next five years there will be no plowing and reaping. 7 But God sent me ahead of you to preserve for you a remnant on earth and to save your lives by a great deliverance.[a]
8 “So then, it was not you who sent me here, but God. He made me father to Pharaoh, lord of his entire household and ruler of all Egypt.
Genesis 50:20-21
20 You intended to harm me, but God intended it for good to accomplish what is now being done, the saving of many lives. 21 So then, don’t be afraid. I will provide for you and your children.” And he reassured them and spoke kindly to them.