Jeremiah 32:2-3 KJV

2 For then the king of Babylon's army besieged Jerusalem: and Jeremiah the prophet was shut up in the court of the prison, which was in the king of Judah's house.
3 For Zedekiah king of Judah had shut him up , saying , Wherefore dost thou prophesy , and say , Thus saith the LORD, Behold, I will give this city into the hand of the king of Babylon, and he shall take it;