Despite his suffering, Jeremiah did not hold back the truth. When the king inquired of him, whether he had a revelation from God, he replied: "Yes, the king of Babylonia will carry thee off into exile." To avoid irritating the king, he went into no further detail. He only prayed the king to liberate him from prison, saying: "Even wicked men like Hananiah and his descendants at least cast about for a pretext when they desire to take revenge, and their example ought not to be lost upon thee who art called Zedekiah, 'just man.'"

The king granted his petition, but Jeremiah did not enjoy liberty for long. Hardly out of prison, he again advised the people to surrender, and the nobility seized him and cast him into a lime pit filled with water, where they hoped he would drown. But a miracle happened. The water sank to the bottom, and the mud rose to the surface, and supported the prophet above the water.

Help came to him from Ebed-melech, a "white raven," the only pious man at court. Ebed-melech hastened to the king and spoke: "Know, if Jeremiah perishes in the lime pit, Jerusalem will surely be captured." With the permission of the king, Ebed-melech went to the pit, and cried out aloud several times, "O my lord Jeremiah," but no answer came. Jeremiah feared the words were spoken by his former jailer Jonathan, who had not given up his practice of mocking at the prophet.

He would come to the edge of the pit and call down jeeringly: "Do not rest thy head on the mud, and take a little sleep, Jeremiah." To such sneers Jeremiah made no reply, and hence it was that Ebed-melech was left unanswered. Thinking the prophet dead, he began to lament and tear his clothes. Then Jeremiah, realizing that it was a friend, and not Jonathan, asked: "Who is it that is calling my name and weeps therewith?" and he received the assurance that Ebed-melech had come to rescue him from his perilous position.