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.
15 Joshua and all Israel let themselves be driven back before them, and they fled toward the wilderness.
16 All the men of Ai were called to pursue them, and they pursued Joshua and were lured away from the city.