Genesis 26:22-33

26:22 Then he moved away from there and dug another well. They did not quarrel over it, so Isaac named it Rehoboth, saying, “For now the Lord has made room for us, and we will prosper in the land.”

26:23 From there Isaac went up to Beer Sheba. 26:24 The Lord appeared to him that night and said, “I am the God of your father Abraham. Do not be afraid, for I am with you. I will bless you and multiply your descendants for the sake of my servant Abraham.” 26:25 Then Isaac built an altar there and worshiped the Lord. He pitched his tent there, and his servants dug a well.

26:26 Now Abimelech had come to him from Gerar along with Ahuzzah his friend and Phicol the commander of his army. 26:27 Isaac asked them, “Why have you come to me? You hate me and sent me away from you.” 26:28 They replied, “We could plainly see that the Lord is with you. So we decided there should be a pact between us – between us and you. Allow us to make a treaty with you 26:29 so that you will not do us any harm, just as we have not harmed you, but have always treated you well before sending you away in peace. Now you are blessed by the Lord.”

26:30 So Isaac held a feast for them and they celebrated. 26:31 Early in the morning the men made a treaty with each other. Isaac sent them off; they separated on good terms.

26:32 That day Isaac’s servants came and told him about the well they had dug. “We’ve found water,” they reported. 26:33 So he named it Shibah; that is why the name of the city has been Beer Sheba to this day.