As they began to sing and praise, the Lord set an ambush against the Ammonites, Moab, and Mount Seir who had come against Judah, so that they were routed.
“For my people are foolish; they do not know me; they are stupid children; they have no understanding. They are skilled in doing evil but do not know how to do good.”
So Joshua sent them out, and they went to the place of ambush and lay between Bethel and Ai, to the west of Ai, but Joshua spent that night with the people.