Abimelek and Phicol acknowledge God's presence with Abraham and make a treaty with him. Abraham complains about a well of water that Abimelek's servants had seized, but they make a deal and Abraham gives Abimelek sheep and cattle. Abraham sets apart seven ewe lambs as a witness that he dug the well, and the place is called Beersheba. Abraham plants a tamarisk tree and stays in the land of the Philistines for a long time.