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.
“For my people are foolish, they know me not; they are stupid children, they have no understanding. They are skilled in doing evil, but how to do good they know not.”
And he commanded them, “Behold, you shall lie in ambush against the city, behind it; do not go very far from the city, but hold yourselves all in readiness;
So Joshua sent them forth; 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.