21 When Joshua and all the other Israelites saw that the ambush had succeeded and that smoke was rising from the town, they turned and attacked the men of Ai.