Then Joshua and all the Israelites traveled from Lachish to Eglon. They camped around Eglon and attacked it.