Genesis 47:27-31 English Standard Version (ESV)

27 Thus Israel settled in the land of Egypt, in the land of Goshen. And they gained possessions in it, and were fruitful and multiplied greatly. 28 And Jacob lived in the land of Egypt seventeen years. So the days of Jacob, the years of his life, were 147 years.

29 And when the time drew near that Israel must die, he called his son Joseph and said to him, “If now I have found favor in your sight, put your hand under my thigh and promise to deal kindly and truly with me. Do not bury me in Egypt, 30 but let me lie with my fathers. Carry me out of Egypt and bury me in their burying place.” He answered, “I will do as you have said.” 31 And he said, “Swear to me”; and he swore to him. Then Israel bowed himself upon the head of his bed.

Genesis 50:14-21

14 After he had buried his father, Joseph returned to Egypt with his brothers and all who had gone up with him to bury his father.

God’s Good Purposes

15 When Joseph’s brothers saw that their father was dead, they said, “It may be that Joseph will hate us and pay us back for all the evil that we did to him.” 16 So they sent a message to Joseph, saying, “Your father gave this command before he died: 17 ‘Say to Joseph, “Please forgive the transgression of your brothers and their sin, because they did evil to you.”’ And now, please forgive the transgression of the servants of the God of your father.” Joseph wept when they spoke to him. 18 His brothers also came and fell down before him and said, “Behold, we are your servants.” 19 But Joseph said to them, “Do not fear, for am I in the place of God? 20 As for you, you meant evil against me, but God meant it for good, to bring it about that many people[a] should be kept alive, as they are today. 21 So do not fear; I will provide for you and your little ones.” Thus he comforted them and spoke kindly to them.