7 you will rise up from the ambush and take possession of the city, for Adonai your God will give it into your hand.
8 Now when you have seized the city, you will set the city on fire—according to the word of Adonai you must do. See that you do as I have ordered you.”
9 So Joshua sent them off, and they went to the ambush site, taking position between Bethel and Ai, to the west of Ai. But Joshua spent that night among the people.
10 Then Joshua rose up early in the morning and mustered the people. He and the elders of Israel marched before the people to Ai.
11 All the people of war with him went up, advanced, and came in front of the city. They camped to the north of Ai, with a valley between him and Ai.
12 But he had taken about 5,000 men and set them in ambush between Bethel and Ai, to the west of the city.
13 So they stationed the people, the main army that was to the north of the city, and its rear guard to the west of the city. Then Joshua walked that night in the midst of the valley.