These verses actually repeat Jeremiah 23:19-20 almost word for word. This repetition is significant because Jeremiah 23 is a warning against false prophets. In particular, it is about men, claiming to speak for God, who tell the people—whose lives deny God—that, "The LORD has said, 'You shall have peace.'" These prophets say to the people, who were walking according to the dictates of their own hearts, "No evil will come upon you." In essence, they deny God's justice, and the fact that sin has consequences. They are telling the people not to worry about God's judgment upon them—everything would be fine; no change of course would be necessary.
However, the people, in reality, have declared war on God and His way of life through the conduct of their own lives. Whether or not they realize it, their carnal minds hold great enmity for God's way of doing things. They can never have peace with God until they repent and change.
God always desires peace, but if the sinning party is unwilling to face reality and repent, then His response will be a painful one. There will be peace with God only when the sinner is broken and submits to God. Yet, the false prophets insinuate that God does not care and that it does not matter how one lives. Nevertheless, these verses show that God destroys those who promote the idea that sin does not have consequences, who say God's justice is of little concern. These ideas keep getting Israel—indeed, all of mankind—into trouble.
The symbol of the whirlwind, then, represents God's fury and anger. Just as no man can control or divert a tornado or hurricane, so God's anger at the sin of the wicked cannot be resisted. It will continue until He has performed the intents of His heart. In the latter days, which we are in, God says we will consider it, meaning that Israel and Judah have not yet learned this lesson. However, when that chastening is over, Israel and Judah will be restored to the land, and, more importantly, they will be reconciled to God and able to live in peace.
David C. Grabbe
The Second Exodus (Part Two)