40 The word of the Eternal came again to Jeremiah after Nebuzaradan (captain of the imperial guard) found the prophet in chains with the rest of the exiles from Jerusalem and Judah and let him go. He had been taken to Ramah with the others who would soon be deported to Babylon. 2 When the captain of the imperial guard learned of the mix-up, he took Jeremiah aside and spoke to him.
In the aftermath of war, confusion and mistakes are rampant. Nebuchadnezzar himself has ordered that Jeremiah be placed in the care of Gedaliah (39:11–12), but some incompetent staff member has sent Jeremiah to be processed for exile in Babylon. It falls to Nebuzaradan to try to fix the mistake, before it is too late.
Nebuzaradan: Your God, the Eternal, commanded all of this to happen.