When God saw by their actions that they had turned from their evil ways, he relented and did not inflict upon them the punishment that he had threatened.
And not only that, but we also glory in our sufferings, because we realize that suffering develops perseverance, and perseverance produces character, and character produces hope.