22 As they began to sing and praise God, the Lord set ambushes for the people of Ammon, Moab, and Edom who had come to attack Judah. And they were defeated.