Israel turned away from the foreign gods they owned and they worshiped Yahweh, so he became impatient over the misery.