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