23 So swear to me that you won't do anything underhanded to me or any of my family. For as long as you live here, swear that you'll treat me and my land as well as I've treated you." 24 Abraham said, "I swear it." 25 At the same time, Abraham confronted Abimelech over the matter of a well of water that Abimelech's servants had taken. 26 Abimelech said, "I have no idea who did this; you never told me about it; this is the first I've heard of it." 27 So the two of them made a covenant. Abraham took sheep and cattle and gave them to Abimelech. 28 Abraham set aside seven sheep from his flock. 29 Abimelech said, "What does this mean? These seven sheep you've set aside." 30 Abraham said, "It means that when you accept these seven sheep, you take it as proof that I dug this well, that it's my well." 31 That's how the place got named Beersheba (the Oath-Well), because the two of them swore a covenant oath there. 32 After they had made the covenant at Beersheba, Abimelech and his commander, Phicol, left and went back to Philistine territory.
33 Abraham planted a tamarisk tree in Beersheba and worshiped God there, praying to the Eternal God. 34 Abraham lived in Philistine country for a long time.
Matthew Henry's Commentary on Genesis 21:23-34
Commentary on Genesis 21:22-34
(Read Genesis 21:22-34)
Abimelech felt sure that the promises of God would be fulfilled to Abraham. It is wise to connect ourselves with those who are blessed of God; and we ought to requite kindness to those who have been kind to us. Wells of water are scarce and valuable in eastern countries. Abraham took care to have his title to the well allowed, to prevent disputes in future. No more can be expected from an honest man than that he be ready to do right, as soon as he knows he has done wrong. Abraham, being now in a good neighbourhood, stayed a great while there. There he made, not only a constant practice, but an open profession of his religion. There he called on the name of the Lord, as the everlasting God; probably in the grove he planted, which was his place of prayer. Abraham kept up public worship, in which his neighbours might join. Good men should do all they can to make others so. Wherever we sojourn, we must neither neglect nor be ashamed of the worship of Jehovah.