NET
22 When they began to shout and praise, the Lord suddenly attacked the Ammonites, Moabites, and men from Mount Seir who were invading Judah, and they were defeated.
Darby
22 And when they began the song of triumph and praise, Jehovah set liers-in-wait against the children of Ammon, Moab, and mount Seir, who had come against Judah, and they were smitten.
KJV
22 And when they began to sing and to praise, the LORD set ambushments against the children of Ammon, Moab, and mount Seir, which were come against Judah; and they were smitten.