Jeremiah 38:6-13; Jeremiah 38:28
So the officers took Jeremiah and put him into the well of Malkijah, the king's son, which was in the courtyard of the guards. The officers used ropes to lower Jeremiah into the well, which did not have any water in it, only mud. And Jeremiah sank down into the mud.
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,
Ebed-Melech left the palace and went to the king. Ebed-Melech said to him,
"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."
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."
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.
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.
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.
So Jeremiah stayed under guard in the courtyard of the guard until the day Jerusalem was captured.