So Abraham and Abimelech made an agreement at Beersheba. Then Abimelech and Phicol, his military commander, went back to the country of the Philistines.