The Philistines gathered their armies for war. They met at Socoh in Judah and camped at Ephes Dammim between Socoh and Azekah.