Genesis 47:27-31 ESV
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. And Jacob lived in the land of Egypt seventeen years. So the days of Jacob, the years of his life, were 147 years. 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, 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.” And he said, “Swear to me”; and he swore to him. Then Israel bowed himself upon the head of his bed.