God's Message to Jeremiah at the time King Nebuchadnezzar of Babylon mounted an all-out attack on Jerusalem and all the towns around it with his armies and allies and everyone he could muster:
"I, God, the God of Israel, direct you to go and tell Zedekiah king of Judah: 'This is God's Message. Listen to me. I am going to hand this city over to the king of Babylon, and he is going to burn it to the ground.
And don't think you'll get away. You'll be captured and be his prisoner. You will have a personal confrontation with the king of Babylon and be taken off with him, captive, to Babylon.
"'But listen, O Zedekiah king of Judah, to the rest of the Message of God. You won't be killed.
You'll die a peaceful death. They will honor you with funeral rites as they honored your ancestors, the kings who preceded you. They will properly mourn your death, weeping, "Master, master!" This is a solemn promise. God's Decree.'"
The prophet Jeremiah gave this Message to Zedekiah king of Judah in Jerusalem, gave it to him word for word.
It was at the very time that the king of Babylon was mounting his all-out attack on Jerusalem and whatever cities in Judah that were still standing - only Lachish and Azekah, as it turned out (they were the only fortified cities left in Judah).