Jeremiah 32: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.