The survivors fled into the city of Aphek, where the wall collapsed on twenty-seven thousand of them. Ben-hadad, too, fled, and took refuge within the city, in an inner room.
At that time, the Philistines gathered for an attack on Israel. Israel went out to engage them in battle and camped at Ebenezer, while the Philistines camped at Aphek.