Jeremiah 38:7-13 NCV

7 But Ebed-Melech, a Cushite and a servant in the palace, heard that the officers had put Jeremiah into the well. As King Zedekiah was sitting at the Benjamin Gate,
8 Ebed-Melech left the palace and went to the king. Ebed-Melech said to him,
9 "My master and king, these rulers have acted in an evil way. They have treated Jeremiah the prophet badly. They have thrown him into a well and left him there to die! When there is no more bread in the city, he will starve to death."
10 Then King Zedekiah commanded Ebed-Melech the Cushite, "Take thirty men from the palace and lift Jeremiah the prophet out of the well before he dies."
11 So Ebed-Melech took the men with him and went to a room under the storeroom in the palace. He took some old rags and worn-out clothes from that room. Then he let those rags down with some ropes to Jeremiah in the well.
12 Ebed-Melech the Cushite said to Jeremiah, "Put these old rags and worn-out clothes under your arms to be pads for the ropes." So Jeremiah did as Ebed-Melech said.
13 The men pulled Jeremiah up with the ropes and lifted him out of the well. And Jeremiah stayed under guard in the courtyard of the guard.