Hananiah’s promises of peace for Jerusalem was, as Jeremiah pointed out, contrary to almost everything he and other prophets had said. As Jeremiah suggested:
Jeremiah 50:9 So a prophet who predicts peace must show he is right. Only when his predictions come true can we know that he is really from the Lord.
So Hananiah bravely dug himself in further, and broke the wooden yoke God had commanded Jeremiah to wear, and promised deliverance within two years. God’s response:
Jeremiah 50:13 Go and tell Hananiah, ‘This is what the Lord says: You have broken a wooden yoke, but you have replaced it with a yoke of iron.’