So they got rid of their foreign gods and worshipped the Lord; and he became troubled over Israel's distress.