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 among the people.
“For my people are foolish; they know me not; they are stupid children; they have no understanding. They are ‘wise’—in doing evil! But how to do good they know not.”
And when they began to sing and praise, the Lord set an ambush against the men of Ammon, Moab, and Mount Seir, who had come against Judah, so that they were routed.