7 Then you will come out of hiding and capture the city. The Lord your God will give it to you.
8 After you have taken the city, set it on fire, just as the Lord has commanded. These are your orders.”
9 So Joshua sent them out, and they went to their hiding place and waited there, west of Ai, between Ai and Bethel. Joshua spent the night in camp.
10 Early in the morning Joshua got up and called the soldiers together. Then he and the leaders of Israel led them to Ai.
11 The soldiers with him went towards the main entrance to the city and set up camp on the north side, with a valley between themselves and Ai.
12 He took about 5,000 men and put them in hiding west of the city, between Ai and Bethel.
13 The soldiers were arranged for battle with the main camp north of the city and the rest of the men to the west. Joshua spent the night in the valley.