References for Joshua 8:10

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
They had the soldiers take up their positions--all those in the 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.10 But he did not know11 that an ambush had been set against him behind the city.

References for Joshua 8:19

20
The men of Ai looked back and saw the smoke of the city rising against the sky,20 but they had no chance to escape in any direction, for the Israelites who had been fleeing toward the desert had turned back against their pursuers.

References for Joshua 8:21

22
The men of the ambush also came out of the city against them, so that they were caught in the middle, with Israelites on both sides. Israel cut them down, leaving them neither survivors nor fugitives.22