King James Version (KJV)
So Jeremiah abode in the court of the prison until the day that Jerusalem was taken: and he was {there} when Jerusalem was taken.
Modern English
So Jeremiah stayed in the court of the guard until the day that Jerusalem was taken.
Hebrew
וַיֵּ֤שֶׁב יִרְמְיָ֙הוּ֙ בַּחֲצַ֣ר הַמַּטָּרָ֔ה עַד־י֖וֹם אֲשֶׁר־נִלְכְּדָ֣ה יְרוּשָׁלָ֑͏ִם וְהָיָ֕ה כַּאֲשֶׁ֥ר נִלְכְּדָ֖ה יְרוּשָׁלָֽ͏ִם׃
vayesheb yirmyahv baḥaṣar hamaṭarah ʿad-yvom ʾasher-nilkdah yrvshala͏im vhayah kaʾasher nilkdah yrvshala͏im