So after they had made a covenant in Beer-sheba, Abimelech and Phicol, the commander of his army, left and returned to Philistine territory.