Then the Lord said to Joshua, "Don't be afraid or give up. Lead all your fighting men to Ai. I will help you defeat the king of Ai, his people, his city, and his land.
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."
So Joshua led his whole army toward Ai. Then he chose thirty thousand of his best fighting men and sent them out at night.
Joshua gave them these orders: "Listen carefully. You must set up an ambush behind the city. Don't go far from it, but continue to watch and be ready.
I and the men who are with me will march toward the city, and the men in the city will come out to fight us, just as they did before. Then we will turn and run away from them.
They will chase us away from the city, thinking we are running away from them as we did before. When we run away,
come out from your ambush and take the city. The Lord your God will give you the power to win.