Isaac’s servants dug in the valley and discovered a well of fresh water there.
But the herders of Gerar quarreled with those of Isaac and said, “The water is ours!” So he named the well Esek, because they disputed with him.
Then they dug another well, but they quarreled over that one also; so he named it Sitnah.
He moved on from there and dug another well, and no one quarreled over it. He named it Rehoboth, saying, “Now the LORD has given us room and we will flourish in the land.”
From there he went up to Beersheba.
That night the LORD appeared to him and said, “I am the God of your father Abraham. Do not be afraid, for I am with you; I will bless you and will increase the number of your descendants for the sake of my servant Abraham.”
Isaac built an altar there and called on the name of the LORD. There he pitched his tent, and there his servants dug a well.
Meanwhile, Abimelek had come to him from Gerar, with Ahuzzath his personal adviser and Phicol the commander of his forces.
Isaac asked them, “Why have you come to me, since you were hostile to me and sent me away?”
They answered, “We saw clearly that the LORD was with you; so we said, ‘There ought to be a sworn agreement between us’—between us and you. Let us make a treaty with you
that you will do us no harm, just as we did not harm you but always treated you well and sent you away peacefully. And now you are blessed by the LORD.”