There was another famine in the land in addition to the one that had occurred in Abraham's time. And Isaac went to Abimelech, king of the Philistines, at Gerar.
The Lord appeared to him and said, "Do not go down to Egypt. Live in the land that I tell you about;
stay in this land as a foreigner, and I will be with you and bless you. For I will give all these lands to you and your offspring, and I will confirm the oath that I swore to your father Abraham.
I will make your offspring as numerous as the stars of the sky, I will give your offspring all these lands, and all the nations of the earth will be blessed by your offspring,
because Abraham listened to My voice and kept My mandate, My commands, My statutes, and My instructions."
So Isaac settled in Gerar.
When the men of the place asked about his wife, he said, "She is my sister," for he was afraid to say "my wife," [thinking], "The men of the place will kill me on account of Rebekah, for she is a beautiful woman."
When Isaac had been there for some time, Abimelech king of the Philistines looked down from the window and was surprised to see Isaac caressing his wife Rebekah.
Abimelech sent for Isaac and said, "So she is really your wife! How could you say, 'She's my sister'?" Isaac answered him, "Because I thought I might die on account of her."
Then Abimelech said, "What is this you've done to us? One of the people could easily have slept with your wife, and you would have brought guilt on us."
So Abimelech warned all the people with these words: "Whoever harms this man or his wife will certainly die."
Isaac sowed seed in that land, and in that year he reaped a hundred times [what was sown]. The Lord blessed him,
and the man became rich and kept getting richer until he was very wealthy.
He had flocks of sheep, herds of cattle, and many slaves, and the Philistines were envious of him.
The Philistines stopped up all the wells that his father's slaves had dug in the days of his father Abraham, filling them with dirt.
And Abimelech said to Isaac, "Leave us, for you are much too powerful for us."
So Isaac left there, camped in the valley of Gerar, and lived there.
Isaac reopened the water wells that had been dug in the days of his father Abraham and that the Philistines had stopped up after Abraham died. He gave them the same names his father had given them.
Moreover, Isaac's slaves dug in the valley and found a well of spring water there.
But the herdsmen of Gerar quarreled with Isaac's herdsmen and said, "The water is ours!" So he named the well Quarrel because they quarreled with him.
Then they dug another well and quarreled over that one also, so he named it Hostility.
He moved from there and dug another, and they did not quarrel over it. He named it Open Spaces and said, "For now the Lord has made room for us, and we will be fruitful in the land."
From there he went up to Beer-sheba,
and the Lord appeared to him that night and said, "I am the God of your father Abraham. Do not be afraid, for I am with you. I will bless you and multiply your offspring because of My servant Abraham."
So he built an altar there, worshiped the Lord, and pitched his tent there. Isaac's slaves also dug a well there.
Then Abimelech came to him from Gerar with Ahuzzath his adviser and Phicol the commander of his army.
Isaac said to them, "Why have you come to me? You hated me and sent me away from you."
They replied, "We have clearly seen how the Lord has been with you. We think there should be an oath between two parties-between us and you. Let us make a covenant with you:
You will not harm us, just as we have not harmed you but have only done what was good to you, sending you away in peace. You are now blessed by the Lord."
So he prepared a banquet for them, and they ate and drank.
They got up early in the morning and swore an oath to each other. Then Isaac sent them on their way, and they left him in peace.
On that same day Isaac's slaves came to tell him about the well they had dug, saying to him, "We have found water!"
He called it Oath. Therefore the name of the city is Beer-sheba to this day.
When Esau was 40 years old, he took as his wives Judith daughter of Beeri the Hittite, and Basemath daughter of Elon the Hittite.
They made life bitter for Isaac and Rebekah.