They were angry with Jeremiah and had him beaten and imprisoned in the house of Jonathan the secretary, which they had made into a prison.
References for Jeremiah 37:15
Jeremiah was put into a vaulted cell in a dungeon, where he remained a long time.
Then King Zedekiah sent for him and had him brought to the palace, where he asked him privately, “Is there any word from the LORD?” “Yes,” Jeremiah replied, “you will be delivered into the hands of the king of Babylon.”
References for Jeremiah 37:17
Then Jeremiah said to King Zedekiah, “What crime have I committed against you or your attendants or this people, that you have put me in prison?
References for Jeremiah 37:18
Where are your prophets who prophesied to you, ‘The king of Babylon will not attack you or this land’?
References for Jeremiah 37:19
But now, my lord the king, please listen. Let me bring my petition before you: Do not send me back to the house of Jonathan the secretary, or I will die there.”
References for Jeremiah 37:20
King Zedekiah then gave orders for Jeremiah to be placed in the courtyard of the guard and given a loaf of bread from the street of the bakers each day until all the bread in the city was gone. So Jeremiah remained in the courtyard of the guard.
References for Jeremiah 37:21