Genesis 47:24-31

24 And at the harvests you shall give one-fifth to Pharaoh, and four-fifths shall be your own, as seed for the field and as food for yourselves and your households, and as food for your little ones."
25 They said, "You have saved our lives; may it please my lord, we will be slaves to Pharaoh."
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 settled in the land of Egypt, in the region of Goshen; and they gained possessions in it, and were fruitful and multiplied exceedingly.
28 Jacob lived in the land of Egypt seventeen years; so the days of Jacob, the years of his life, were one hundred forty-seven years.
29 When the time of Israel's death drew near, he called his son Joseph and said to him, "If I have found favor with you, put your hand under my thigh and promise to deal loyally and truly with me. Do not bury me in Egypt.
30 When I lie down with my ancestors, carry me out of Egypt and bury me in their burial 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 on the head of his bed.
New Revised Standard Version Bible, copyright 1989, 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.