But when Isaac’s servants dug in the valley and found there a well of flowing water, the herdsmen of Gerar quarreled with the herdsmen of Isaac, saying, “The water is ours!” So he named the well Esek, because they contended with him. Then they dug another well, and they quarreled over it too, so he named it Sitnah. He moved away from there and dug another well, and they did not quarrel over it; so he named it Rehoboth, for he said, “At last the LORD has made room for us, and we will be fruitful in the land.”
Then he went up from there to Beersheba. The LORD appeared to him the same night and said,
“I am the God of your father Abraham;
Do not fear, for I am with you.
I will bless you, and multiply your descendants,
For the sake of My servant Abraham.”
So he built an altar there and called upon the name of the LORD, and pitched his tent there; and there Isaac’s servants dug a well.
Then Abimelech came to him from Gerar with his adviser Ahuzzath and Phicol the commander of his army. Isaac said to them, “Why have you come to me, since you hate me and have sent me away from you?” They said, “We see plainly that the LORD has been with you; so we said, ‘Let there now be an oath between us, even between you and us, and let us make a covenant with you, that you will do us no harm, just as we have not touched you and have done to you nothing but good and have sent you away in peace. You are now the blessed of the LORD.’ ” Then he made them a feast, and they ate and drank. In the morning they arose early and exchanged oaths; then Isaac sent them away and they departed from him in peace. Now it came about on the same day, that Isaac’s servants came in and told him about the well which they had dug, and said to him, “We have found water.” So he called it Shibah; therefore the name of the city is Beersheba to this day.
When Esau was forty years old he married Judith the daughter of Beeri the Hittite, and Basemath the daughter of Elon the Hittite; and they brought grief to Isaac and Rebekah.