Bereisheet (Genesis): Vayechi > Ch 47
Joseph presents his father & brothers to Pharaoh. Pharaoh settles them in Goshen
Joseph presented 5 of his brothers and later his father Jacob before Pharaoh. Jacob told Pharaoh: "The days of the years of my sojournings are 130 years. The days of the years of my life have been few and miserable, and they have not reached the days of the years of the lives of my forefathers in the days of their sojournings." Pharaoh mandated Jacob & his descendants to dwell in the land of Rameses (best of the land of Goshen) and Joseph sustained his father's entire household with bread.
As famine intensifies, Egyptians sell everything for food and become slaves to Pharaoh
As famine intensified, the Egyptians ran out of money to pay Pharaoh for the grain. Joseph allowed them to pay with livestock. Next year the livestock ended, so the Egyptians sold all their farmland and sold themselves as slaves to Pharaoh. Joseph gave them grain and made a rule stating that since the fields belong to Pharaoh everyone must give 20% of their harvest to the Pharaoh. This rule lasted for hundreds of years. Only priests kept their farmland because they were getting free grain allowances from Pharaoh. Egyptians were joyous because Joseph has saved their lives.
Joseph swears to his father Jacob that he (Jacob) will be buried with his forefathers
Jacob lived in Egypt for 17 years, he was 147 years old. Before dying he asked Joseph to bury him outside of Egypt, in the grave of his forefathers. Jacob swore to do so.