37:1 Zedekiah the son of Josiah, whom Nebuchadnezzar king of Babylon made king in the land of Judah, reigned instead of Coniah the son of Jehoiakim. 2 But neither he nor his servants nor the people of the land listened to the words of the Lord that he spoke through Jeremiah the prophet.
3 King Zedekiah sent Jehucal the son of Shelemiah, and Zephaniah the priest, the son of Maaseiah, to Jeremiah the prophet, saying, “Please pray for us to the Lord our God.” 4 Now Jeremiah was still going in and out among the people, for he had not yet been put in prison. 5 The army of Pharaoh had come out of Egypt. And when the Chaldeans who were besieging Jerusalem heard news about them, they withdrew from Jerusalem.
6 Then the word of the Lord came to Jeremiah the prophet: 7 “Thus says the Lord, God of Israel: Thus shall you say to the king of Judah who sent you to me to inquire of me, ‘Behold, Pharaoh's army that came to help you is about to return to Egypt, to its own land. 8 And the Chaldeans shall come back and fight against this city. They shall capture it and burn it with fire. 9 Thus says the Lord, Do not deceive yourselves, saying, “The Chaldeans will surely go away from us,” for they will not go away. 10 For even if you should defeat the whole army of Chaldeans who are fighting against you, and there remained of them only wounded men, every man in his tent, they would rise up and burn this city with fire.’”
11 Now when the Chaldean army had withdrawn from Jerusalem at the approach of Pharaoh's army, 12 Jeremiah set out from Jerusalem to go to the land of Benjamin to receive his portion there among the people. 13 When he was at the Benjamin Gate, a sentry there named Irijah the son of Shelemiah, son of Hananiah, seized Jeremiah the prophet, saying, “You are deserting to the Chaldeans.” 14 And Jeremiah said, “It is a lie; I am not deserting to the Chaldeans.” But Irijah would not listen to him, and seized Jeremiah and brought him to the officials. 15 And the officials were enraged at Jeremiah, and they beat him and imprisoned him in the house of Jonathan the secretary, for it had been made a prison.
16 When Jeremiah had come to the dungeon cells and remained there many days, 17 King Zedekiah sent for him and received him. The king questioned him secretly in his house and said, “Is there any word from the Lord?” Jeremiah said, “There is.” Then he said, “You shall be delivered into the hand of the king of Babylon.” 18 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? 19 Where are your prophets who prophesied to you, saying, ‘The king of Babylon will not come against you and against this land’? 20 Now hear, please, O my lord the king: let my humble plea come before you and do not send me back to the house of Jonathan the secretary, lest I die there.” 21 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. (ESV)