Genesis 21:32-34
21:32 So they made a treaty at Beer Sheba. Then Abimelech and Phicol, the commander of his army, returned to the land of the Philistines.
21:33 Abraham planted a tamarisk tree in Beer Sheba. There he worshiped the Lord, the eternal God.
21:34 So Abraham stayed in the land of the Philistines for quite some time.