13So all the people were in their places, the army on the north side of the town and the secret force on the west; and that night Joshua went down into the valley.
14Now when the king of Ai saw it, he got up quickly and went out to war against Israel, he and all his people, to the slope going down to the valley; but he had no idea that a secret force was waiting at the back of the town.
15Then Joshua and all Israel, acting as if they were overcome before them, went in flight by way of the waste land.
16And all the people in Ai came together to go after them; and they went after Joshua, moving away from the town.
17There was not a man in Ai and Beth-el who did not go out after Israel; and the town was open and unwatched while they went after Israel.
18And the Lord said to Joshua, Let your spear be stretched out against Ai; for I will give it into your hands. So Joshua took up his spear, stretching it out in the direction of the town.
19Then the secret force came quickly from their place, and running forward when they saw his hand stretched out, went into the town and took it, and put fire to it straight away.