Genesis 26:17-35

26:17 So Isaac left there and settled in the Gerar Valley. 26:18 Isaac reopened the wells that had been dug back in the days of his father Abraham, for the Philistines had stopped them up after Abraham died. Isaac gave these wells the same names his father had given them.

26:19 When Isaac’s servants dug in the valley and discovered a well with fresh flowing water there, 26:20 the herdsmen of Gerar quarreled with Isaac’s herdsmen, saying, “The water belongs to us!” So Isaac named the well Esek because they argued with him about it. 26:21 His servants dug another well, but they quarreled over it too, so Isaac named it Sitnah. 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.

26:34 When Esau was forty years old, he married Judith the daughter of Beeri the Hittite, as well as Basemath the daughter of Elon the Hittite. 26:35 They caused Isaac and Rebekah great anxiety.