Genesis 21:22-34 New American Standard Bible (NASB)
Covenant with Abimelech
22 Now it came about at that time that Abimelech and Phicol, the commander of his army, spoke to Abraham, saying, “God is with you in all that you do; 23 now therefore, swear to me here by God that you will not deal falsely with me or with my offspring or with my posterity, but according to the kindness that I have shown to you, you shall show to me and to the land in which you have sojourned.” 24 Abraham said, “I swear it.” 25 But Abraham [a]complained to Abimelech because of the well of water which the servants of Abimelech had seized. 26 And Abimelech said, “I do not know who has done this thing; you did not tell me, nor did I hear of it [b]until today.”
27 Abraham took sheep and oxen and gave them to Abimelech, and the two of them made a covenant. 28 Then Abraham set seven ewe lambs of the flock by themselves. 29 Abimelech said to Abraham, “What do these seven ewe lambs mean, which you have set by themselves?” 30 He said, “You shall take these seven ewe lambs from my hand so that it may be a witness to me, that I dug this well.” 31 Therefore he called that place Beersheba, because there the two of them took an oath. 32 So they made a covenant at Beersheba; and Abimelech and Phicol, the commander of his army, arose and returned to the land of the Philistines. 33 Abraham planted a tamarisk tree at Beersheba, and there he called on the name of the Lord, the Everlasting God. 34 And Abraham sojourned in the land of the Philistines for many days.
Genesis 21:22-34 New International Version (NIV)
The Treaty at Beersheba
22 At that time Abimelek and Phicol the commander of his forces said to Abraham, “God is with you in everything you do. 23 Now swear to me here before God that you will not deal falsely with me or my children or my descendants. Show to me and the country where you now reside as a foreigner the same kindness I have shown to you.”
24 Abraham said, “I swear it.”
25 Then Abraham complained to Abimelek about a well of water that Abimelek’s servants had seized. 26 But Abimelek said, “I don’t know who has done this. You did not tell me, and I heard about it only today.”
27 So Abraham brought sheep and cattle and gave them to Abimelek, and the two men made a treaty. 28 Abraham set apart seven ewe lambs from the flock, 29 and Abimelek asked Abraham, “What is the meaning of these seven ewe lambs you have set apart by themselves?”
30 He replied, “Accept these seven lambs from my hand as a witness that I dug this well.”
31 So that place was called Beersheba,[a] because the two men swore an oath there.
32 After the treaty had been made at Beersheba, Abimelek and Phicol the commander of his forces returned to the land of the Philistines. 33 Abraham planted a tamarisk tree in Beersheba, and there he called on the name of the Lord, the Eternal God. 34 And Abraham stayed in the land of the Philistines for a long time.