Jeremiah 38:9-19

9 "My master the king, these men have made a terrible mistake in treating the prophet Jeremiah the way they have; they have thrown him into the cistern where he will die of starvation, for there's no bread left in the city."
10 Then the king commanded Ebed-melech the Cushite, "Take thirty men from here and take Jeremiah the prophet out of the cistern before he dies."
11 So Ebed-melech took the men and returned to the palace, to an underground supply room, where he found some old rags and scraps of clothing. Ebed-melech lowered them down the cistern by the ropes
12 and called to Jeremiah, "Put these old rags and scraps of clothing under your arms and hold on to the ropes." When Jeremiah did this,
13 they pulled him up by the ropes and got him out of the cistern. After that Jeremiah remained in the prison quarters.
14 King Zedekiah ordered that the prophet Jeremiah be brought to him at the third entrance of the LORD's temple, where the king said to Jeremiah, "I want to ask you something, and don't hide anything from me."
15 Jeremiah replied, "If I do, you'll kill me! And if I tell you what to do, you won't listen to me!"
16 So King Zedekiah swore to Jeremiah behind closed doors, "As the LORD lives, who has given us this life, I won't put you to death and I won't hand you over to those who seek to kill you."
17 So Jeremiah said to Zedekiah: "The LORD of heavenly forces, the God of Israel, proclaims: If you surrender to the officers of the king of Babylon, you and your family will live, and this city will not be burned down.
18 If you don't surrender to the officers of the king of Babylon, the city will be handed over to the Babylonians, who will burn it down, and you won't escape from them."
19 King Zedekiah said to Jeremiah, "I'm afraid that I will fall into the hands of the Judeans who have defected to the Babylonians, and they will torture me."