NOW THE Philistines gathered their armies for battle and were assembled at Socoh, which belongs to Judah, and encamped between Socoh and Azekah in Ephes-dammim.
So Adoni-zedek king of Jerusalem sent to Hoham king of Hebron, to Piram king of Jarmuth, to Japhia king of Lachish, and to Debir king of Eglon, saying,
Yet will I bring a conqueror upon you, O lady inhabitant of Mareshah, who shall possess you; the glory and nobility of Israel shall come to Adullam [to hide in the caves, as did David]. [I Sam. 22:1.]
And the Lord caused [the enemies] to panic before Israel, who slew them with a great slaughter at Gibeon and chased them along the way that goes up to Beth-horon and smote them as far as Azekah and Makkedah.