21 When Joshua and all Israel saw that the men who had been hiding had captured the city and that it was going up in smoke, they turned and attacked the men of Ai.