Genesis 26:23-33 New Revised Standard Version (NRSV)
23 From there he went up to Beer-sheba. 24 And that very 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 and will bless you and make your offspring numerous for my servant Abraham’s sake.” 25 So he built an altar there, called on the name of the Lord, and pitched his tent there. And there Isaac’s servants dug a well.
26 Then Abimelech went to him from Gerar, with Ahuzzath his adviser and Phicol the commander of his army. 27 Isaac said to them, “Why have you come to me, seeing that 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 say, let there be an oath between you and us, and let us make a covenant with you 29 so 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.” 30 So he made them a feast, and they ate and drank. 31 In the morning they rose early and exchanged oaths; and Isaac set them on their way, and they departed from him in peace. 32 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!” 33 He called it Shibah;[a] therefore the name of the city is Beer-sheba[b] to this day.