So Nebuzaradan the captain of the guard, Nebushazban the Rabsaris, Nergal-sharezer the Rabmag, and all the chief officers of the king of Babylon sent
and took Jeremiah from the court of the guard. They entrusted him to Gedaliah son of Ahikam son of Shaphan to be brought home. So he stayed with his own people.
The word of the Lord came to Jeremiah while he was confined in the court of the guard:
Go and say to Ebed-melech the Ethiopian: Thus says the Lord of hosts, the God of Israel: I am going to fulfill my words against this city for evil and not for good, and they shall be accomplished in your presence on that day.
References for Jeremiah 39:16
But I will save you on that day, says the Lord, and you shall not be handed over to those whom you dread.
For I will surely save you, and you shall not fall by the sword; but you shall have your life as a prize of war, because you have trusted in me, says the Lord.