Genesis 47:26-31

26 So Joseph made it a statute concerning the land of Egypt, and it stands to this day, that Pharaoh should have the fifth; the land of the priests alone did not become Pharaoh's.
27 Thus Israel dwelt in the land of Egypt, in the land of Goshen; and they gained possessions in it, and were fruitful and multiplied exceedingly.
28 And Jacob lived in the land of Egypt seventeen years; so the days of Jacob, the years of his life, were a hundred and forty-seven 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 loyally 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.
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.