The Philistines gathered their forces for war at Socoh in Judah and camped between Socoh and Azekah in Ephes-dammim.