"All your wives and children will be led out to the Babylonians, and you yourself won't escape from them. The king of Babylon will capture you, and this city will be burned down."
Zedekiah said to Jeremiah, "No one is to know about these matters or else you will die.
If the officials find out that we met, and they come and say to you, ‘Tell us what you said to the king. Don't hide anything from us; otherwise, we'll kill you. So what did the king say to you?'
you should say to them, ‘I was begging the king not to send me back to the house of Jonathan to die there.'"
Then all the officials approached Jeremiah to question him. And he responded exactly as the king had instructed him. So they stopped interrogating him because the conversation between the king and Jeremiah hadn't been overheard.
References for Jeremiah 38:27
Jeremiah remained in the prison quarters until Jerusalem was captured.