All the fighting men who were with him approached the front of the town, and camped there on the north side, with a valley between them and Ai.
Early the next morning Joshua got up early and gathered the people and went up to attack Ai, accompanied by the elders of Israel.
He took about five thousand men and had them lie in ambush between Bethel and Ai, to the west of the town.