8 When you have taken the city, set it on fire. Do what the Lord has commanded. See to it; you have my orders.”
9 Then Joshua sent them off, and they went to the place of ambush and lay in wait between Bethel and Ai, to the west of Ai—but Joshua spent that night with the people.
10 Early the next morning Joshua mustered his army, and he and the leaders of Israel marched before them to Ai.
11 The entire force that was with him marched up and approached the city and arrived in front of it. They set up camp north of Ai, with the valley between them and the city.
12 Joshua had taken about five thousand men and set them in ambush between Bethel and Ai, to the west of the city.
13 So the soldiers took up their positions—with the main camp to the north of the city and the ambush to the west of it. That night Joshua went into the valley.
14 When the king of Ai saw this, he and all the men of the city hurried out early in the morning to meet Israel in battle at a certain place overlooking the Arabah. But he did not know that an ambush had been set against him behind the city.