Genesis 26:17-25 ESV
So Isaac departed from there and encamped in the Valley of Gerar and settled there. And Isaac dug again the wells of water that had been dug in the days of Abraham his father, which the Philistines had stopped after the death of Abraham. And he gave them the names that his father had given them. 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.
ESV: English Standard Version 2016