The word that came to Jeremiah from the Lord, when King Nebuchadrezzar of Babylon and all his army and all the kingdoms of the earth and all the peoples under his dominion were fighting against Jerusalem and all its cities:
Thus says the Lord, the God of Israel: Go and speak to King Zedekiah of Judah and say to him: Thus says the Lord: I am going to give this city into the hand of the king of Babylon, and he shall burn it with fire.
And you yourself shall not escape from his hand, but shall surely be captured and handed over to him; you shall see the king of Babylon eye to eye and speak with him face to face; and you shall go to Babylon.
Yet hear the word of the Lord, O King Zedekiah of Judah! Thus says the Lord concerning you: You shall not die by the sword;
you shall die in peace. And as spices were burned for your ancestors, the earlier kings who preceded you, so they shall burn spices for you and lament for you, saying, "Alas, lord!" For I have spoken the word, says the Lord.
References for Jeremiah 34:5
Then the prophet Jeremiah spoke all these words to Zedekiah king of Judah, in Jerusalem,
when the army of the king of Babylon was fighting against Jerusalem and against all the cities of Judah that were left, Lachish and Azekah; for these were the only fortified cities of Judah that remained.