Genesis 47:28-31 ESV
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.
ESV: English Standard Version 2016