There was a famine in the land, so Abram went down to Egypt to live there for a while because the famine in the land was severe.
References for Genesis 12:10
When he was about to enter Egypt, he said to his wife Sarai, "Look, I know what a beautiful woman you are.
When the Egyptians see you, they will say, 'This is his wife.' They will kill me but let you live.
Please say you're my sister so it will go well for me because of you, and my life will be spared on your account."
When Abram entered Egypt, the Egyptians saw that the woman was very beautiful.
Pharaoh's officials saw her and praised her to Pharaoh, so the woman was taken to Pharaoh's house.
He treated Abram well because of her, and Abram acquired flocks and herds, male and female donkeys, male and female slaves, and camels.
But the Lord struck Pharaoh and his house with severe plagues because of Abram's wife Sarai.
So Pharaoh sent for Abram and said, "What have you done to me? Why didn't you tell me she was your wife?
Why did you say, 'She's my sister,' so that I took her as my wife? Now, here's your wife. Take her and go!"
Then Pharaoh gave [his] men orders about him, and they sent him away, with his wife and all he had.