But when Isaac’s servants dug in the valley and found there a well of spring water, the herdsmen of Gerar quarreled with Isaac’s herdsmen, saying, “The water is ours.” So he called the name of the well Esek, because they contended with him. Then they dug another well, and they quarreled over that also, so he called its name Sitnah. And he moved from there and dug another well, and they did not quarrel over it. So he called its name Rehoboth, saying, “For now the LORD has made room for us, and we shall be fruitful in the land.”
From there he went up to Beersheba. And the LORD appeared to him the same night and said, “I am the God of Abraham your father. Fear not, for I am with you and will bless you and multiply your offspring for my servant Abraham’s sake.” 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.
When Abimelech went 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, seeing that 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 be a sworn pact between us, 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.” So he made them a feast, and they ate and drank. In the morning they rose early and exchanged oaths. And Isaac sent them on their way, and they departed from him in peace. That same day Isaac’s servants came and told him about the well that they had dug and said to him, “We have found water.” He called it Shibah; therefore the name of the city is Beersheba to this day.
When Esau was forty years old, he took Judith the daughter of Beeri the Hittite to be his wife, and Basemath the daughter of Elon the Hittite, and they made life bitter for Isaac and Rebekah.