Jeremiah 38:28 NKJV

28 Now Jeremiah remained in the court of the prison until the day that Jerusalem was taken. And he was there when Jerusalem was taken.