When the Israelites who were in ambush saw this, they quickly came out of their hiding place and hurried toward the city. They entered the city, took control of it, and quickly set it on fire.
You will do to Ai and its king what you did to Jericho and its king. Only this time you may take all the wealth and keep it for yourselves. Now tell some of your soldiers to set up an ambush behind the city.”
When the men of Ai looked back, they saw smoke rising from their city. At the same time the Israelites stopped running and turned against the men of Ai, who could not escape in any direction.
All the Israelites moved from their places and got into battle positions at a place named Baal Tamar. Then the Israelites ran out from their hiding places west of Gibeah.