7 Then you will rise up from the ambush and take possession of the city, for Yahweh your God will give it into your hand.
8 And when you capture the city you will set it on fire as Yahweh commanded. Look, I have commanded you.”
9 So Joshua sent them out, and they went to the place of the ambush, and they sat between Bethel and Ai, to the west of Ai; but Joshua spent the night with the people.
10 Joshua rose early in the morning and mustered the people, and he went up with the elders of Israel before the people of Ai.
11 All the fighting men who were with him went up and drew near before the city and camped north of Ai; there was a valley between him and Ai.
12 And he took about five thousand men and set them in ambush between Bethel and Ai, to the west of the city.
13 So they stationed the forces; all the army was north of the city while the rear guard was west. But Joshua went that night to the middle of the valley.