King James Version (KJV)
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.
Modern English
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.
Hebrew
וּ֠בְ֠עֵ֡ת הֵחֵ֠לּ֡וּ בְּ֠רִנָּ֡ה וּ֠תְהִלָּ֡ה נָ֠תַ֠ן יְהוָ֡ה מְ֠אָ֠רְבִ֡ים עַ֠ל בְּנֵ֡י עַמּ֠וֹן מוֹאָ֡ב וְ֠הַ֠ר שֵׂ֠עִ֡יר הַ֠בָּאִ֡ים לִ֠יהוּדָ֡ה וַ֠יִּנָּגֵֽפוּ׃
vbʿet heḥelv brinah vthilah natan yhvah mʾarbiym ʿal bney ʿamvon mvoʾab vhar sheʿiyr habaʾiym liyhvdah vayinagepv