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