22 He moved on from there and dug another well, and no one quarreled over it. He named it Rehoboth, saying, “Now the Lord has given us room and we will flourish in the land.”
23 From there he went up to Beersheba.
24 That 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; I will bless you and will increase the number of your descendants for the sake of my servant Abraham.”
25 Isaac built an altar there and called on the name of the Lord. There he pitched his tent, and there his servants dug a well.
26 Meanwhile, Abimelek had come to him from Gerar, with Ahuzzath his personal adviser and Phicol the commander of his forces.
27 Isaac asked them, “Why have you come to me, since you were hostile to me and sent me away?”
28 They answered, “We saw clearly that the Lord was with you; so we said, ‘There ought to be a sworn agreement between us’—between us and you. Let us make a treaty with you