As they began singing and praising, Adonai set ambushes against the children of Ammon, Moab, and Mount Seir who had come against Judah, and they were defeated.
“For My people are foolish. They do not know Me. They are senseless children, and they have no understanding. They are wise to do evil, but to do good they do not know.”
So Joshua sent them off, and they went to the ambush site, taking position between Bethel and Ai, to the west of Ai. But Joshua spent that night among the people.