All the troops with him marched until they were near the city. They camped north of Ai with the ravine between them and Ai.
Joshua got up early in the morning and assembled the troops. Then he and the leaders of Israel led the army to Ai.
Joshua had taken about five thousand men and had them hide between Bethel and Ai, west of the city.