Genesis 26:18-35 New American Standard Bible (NASB)
Quarrel over the Wells
18 Then Isaac dug again the wells of water which [a]had been dug in the days of his father Abraham, for the Philistines had stopped them up after the death of Abraham; and he [b]gave them the same names which his father had [c]given them. 19 But when Isaac’s servants dug in the valley and found there a well of [d]flowing water, 20 the herdsmen of Gerar quarreled with the herdsmen of Isaac, saying, “The water is ours!” So he named the well [e]Esek, because they contended with him. 21 Then they dug another well, and they quarreled over it too, so he named it [f]Sitnah. 22 He moved away from there and dug another well, and they did not quarrel over it; so he named it [g]Rehoboth, for he said, “[h]At last the Lord has made [i]room for us, and we will be fruitful in the land.”
23 Then he went up from there to Beersheba. 24 The Lord appeared to him the same night and said,
“I am the God of your father Abraham;
25 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.
Covenant with Abimelech
26 Then Abimelech came to him from Gerar [k]with his adviser Ahuzzath and Phicol the commander of his army. 27 Isaac said to them, “Why have you come to me, since you hate me and have sent me away from you?” 28 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 [l]you and us, and let us make a covenant with you, 29 that you will do us no harm, just as we have not touched you [m]and have done to you nothing but good and have sent you away in peace. You are now the blessed of the Lord.’” 30 Then he made them a feast, and they ate and drank. 31 In the morning they arose early and [n]exchanged oaths; then Isaac sent them away and they departed from him in peace. 32 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.” 33 So he called it Shibah; therefore the name of the city is Beersheba to this day.