At that time Abimelech, and Phicol commander of his forces, said to Abraham, "God is with you in everything that you do.
References for Genesis 21:22
So give me your word under God that you won't cheat me, my children, or my descendants. Just as I have treated you fairly, so you must treat me and the land in which you are an immigrant."
Abraham said, "I give you my word.
Then Abraham complained to Abimelech about a well that Abimelech's servants had seized.
Abimelech said, "I don't know who has done this, and you didn't tell me. I didn't even hear about it until today."
Abraham took flocks and cattle, gave them to Abimelech, and the two of them drew up a treaty.
References for Genesis 21:27
Abraham set aside, by themselves, seven female lambs from the flock.
So Abimelech said to Abraham, "What are these seven lambs you've set apart?"
Abraham said, "These seven lambs that you take from me will attest that I dug this well."
Therefore, the name of that place is Beer-sheba because there they gave each other their word.
References for Genesis 21:31
After they drew up a treaty at Beer-sheba, Abimelech, and Phicol commander of his forces, returned to the land of the Philistines.
References for Genesis 21:32
Abraham planted a tamarisk tree in Beer-sheba, and he worshipped there in the name of the LORD, El Olam.
References for Genesis 21:33
Abraham lived as an immigrant in the Philistines' land for a long time.