Genesis 21:32-34 New International Version (NIV)

32. After the treaty had been made at Beersheba, Abimelek and Phicol the commander of his forces returned to the land of the Philistines.

33. Abraham planted a tamarisk tree in Beersheba, and there he called on the name of the Lord, the Eternal God.

34. And Abraham stayed in the land of the Philistines for a long time.

Genesis 21