Above all, you must realize that no prophecy in Scripture ever came from the prophet’s own understanding, or from human initiative. No, those prophets were moved by the Holy Spirit, and they spoke from God.
When God saw what they did, how they turned from their evil way, God relented of the disaster that he had said he would do to them, and he did not do it.