Jeremiah also said to King Zedekiah, "What wrong have I done to you or your servants or this people, that you have put me in prison? Where are your prophets who prophesied to you, saying, 'The king of Babylon will not come against you and against this land?' Now please hear me, my lord king: be good enough to listen to my plea, and do not send me back to the house of the secretary Jonathan to die there." So King Zedekiah gave orders, and they committed Jeremiah to the court of the guard; and a loaf of bread was given him daily from the bakers' street, until all the bread of the city was gone. So Jeremiah remained in the court of the guard (NRSV 37:18-21).
Moreover Jeremiah said unto king Zedekiah, What have I offended against thee, or against thy servants, or against this people, that ye have put me in prison? Where are now your prophets which prophesied unto you, saying, The king of Babylon shall not come against you, nor against this land? Therefore hear now, I pray thee, O my lord the king: let my supplication, I pray thee, be accepted before thee; that thou cause me not to return to the house of Jonathan the scribe, lest I die there. Then Zedekiah the king commanded that they should commit Jeremiah into the court of the prison, and that they should give him daily a piece of bread out of the bakers' street, until all the bread in the city were spent. Thus Jeremiah remained in the court of the prison (KJV 37:18-21).
Although he generally ends up on the bad side of kings and officials, Jeremiah earns the respect and aid of some of them, thanks to his persistence and courage.