Genesis 47:29

When the time drew near that Israel must die, he called his son Joseph and said to him, "Now if I have found favor in your sight, please put your hand under my thigh, and deal kindly and truly with me. Please do not bury me in Egypt,

Surrounding context

47:28 And Jacob lived in the land of Egypt seventeen years. So the length of Jacob's life was one hundred and forty-seven years.

47:29 When the time drew near that Israel must die, he called his son Joseph and said to him, "Now if I have found favor in your sight, please put your hand under my thigh, and deal kindly and truly with me. Please do not bury me in Egypt,

47:30 but let me lie with my fathers; you shall carry me out of Egypt and bury me in their burial place." And he said, "I will do as you have said."

Translation and sources