When they began singing and praising, the Lord set ambushes against Ammon, Moab, and Mount Seir, who had come against Judah; so they were defeated.