So they stationed the main army north of the town and the ambush west of the town. Joshua himself spent that night in the valley.
That night Joshua sent about 5,000 men to lie in ambush between Bethel and Ai, on the west side of the town.
When the king of Ai saw the Israelites across the valley, he and all his army hurried out early in the morning and attacked the Israelites at a place overlooking the Jordan Valley. But he didn’t realize there was an ambush behind the town.
Set the town on fire, as the Lord has commanded. You have your orders.”