22At that time Abimelech and Phicol, ruler of his army, said to Abraham, "God is with you in all that you do."23Now therefore swear to me here by God that you will not deal falsely with me or with my offspring or with my progeny; according to the kindness that I have done with you, you shall do with me and with the land in which you have sojourned.24Abraham said, "I myself will swear."25Then Abraham rebuked Abimelech on account of the well of water that Abimelech's servants had seized.26Abimelech answered, "I did not know who did this thing; you also did not tell me, and I also did not hear of it until today."27Abraham took sheep and cattle and gave them to Abimelech, and the two of them made a covenant.28Abraham set apart seven ewe lambs of the flock by themselves.29Abimelech said to Abraham, "What are these seven ewe lambs that you have set apart by themselves?"30He said, "You shall take the seven ewe lambs from my hand, that they may be a witness for me that I dug this well."31Therefore that place was called Beersheba, because the two of them swore there.32They cut a covenant at Beersheba. Abimelech and Phicol, ruler of his army, rose and returned to the land of the Philistines.33He planted a tamarisk at Beersheba and there called on the name of the LORD, the everlasting God.34Abraham lived as a sojourner in the land of the Philistines for many days.