And while Jeremiah had been confined in the courtyard of the guard, the word of the LORD had come to him:
The word of the LORD had come to Jeremiah while he was still confined in the court of the guard.
This verse turns back to an earlier promise that interprets the present rescue.
11Now Nebuchadnezzar king of Babylon had given orders about Jeremiah through Nebuzaradan captain of the guard, saying, 12“Take him, look after him, and do not let any harm come to him; do for him whatever he says.” 13So Nebuzaradan captain of the guard, Nebushazban the Rabsaris, Nergal-sharezer the Rabmag, and all the captains of the king of Babylon 14had Jeremiah brought from the courtyard of the guard, and they turned him over to Gedaliah son of Ahikam, the son of Shaphan, to take him home. So Jeremiah remained among his own people. 15And while Jeremiah had been confined in the courtyard of the guard, the word of the LORD had come to him: 16“Go and tell Ebed-melech the Cushite that this is what the LORD of Hosts, the God of Israel, says: ‘I am about to fulfill My words against this city for harm and not for good, and on that day they will be fulfilled before your eyes. 17But I will deliver you on that day, declares the LORD, and you will not be delivered into the hands of the men whom you fear. 18For I will surely rescue you so that you do not fall by the sword. Because you have trusted in Me, you will escape with your life like a spoil of war, declares the LORD.’”