Genesis 26:13-26:22
And the man grew richer and richer until he was very wealthy: he acquired flocks and herds, and a large household, so that the Philistines envied him. And the Philistines stopped up all the wells which his father's servants had dug in the days of his father Abraham, filling them with earth. And Abimelech said to Isaac, "Go away from us, for you have become far too big for us."
So Isaac departed from there and encamped in the wadi of Gerar, where he settled. Isaac dug anew the wells which had been dug in the days of his father Abraham and which the Philistines had stopped up after Abraham's death; and he gave them the same names that his father had given them. But when Isaac's servants, digging in the wadi, found there a well of spring water, the herdsmen of Gerar quarreled with Isaac's herdsmen, saying, "The water is ours." He named that well Esek, because they contended with him.
And when they dug another well, they disputed over that one also; so he named it Sitnah. He moved from there and dug yet another well, and they did not quarrel over it; so he called it Rehoboth, saying, "Now at last the Lord has granted us ample space to increase in the land."