23 "Swear to me in God's name that you will never deceive me, my children, or any of my descendants. I have been loyal to you, so now swear that you will be loyal to me and to this country where you are living as a foreigner." 24 Abraham replied, "Yes, I swear to it!" 25 Then Abraham complained to Abimelech about a well that Abimelech's servants had taken by force from Abraham's servants. 26 "This is the first I've heard of it," Abimelech answered. "I have no idea who is responsible. You have never complained about this before." 27 Abraham then gave some of his sheep, goats, and cattle to Abimelech, and they made a treaty. 28 But Abraham also took seven additional female lambs and set them off by themselves. 29 Abimelech asked, "Why have you set these seven apart from the others?" 30 Abraham replied, "Please accept these seven lambs to show your agreement that I dug this well." 31 Then he named the place Beersheba (which means "well of the oath"), because that was where they had sworn the oath. 32 After making their covenant at Beersheba, Abimelech left with Phicol, the commander of his army, and they returned home to the land of the Philistines.

33 Then Abraham planted a tamarisk tree at Beersheba, and there he worshiped the Lord, the Eternal God. 34 And Abraham lived as a foreigner 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.