So they got rid of the foreign gods among them and worshiped the Lord, and He became weary of Israel’s misery.