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.
Trust wholeheartedly in the Lord rather than relying on your own intelligence. In everything you do, acknowledge him, and he will see that your paths are straight.