2 The captain of the guard called for Jeremiah and said, "The Lord your God has brought this disaster on this land, 3 just as he said he would. For these people have sinned against the Lord and disobeyed him. That is why it happened. 4 But I am going to take off your chains and let you go. If you want to come with me to Babylon, you are welcome. I will see that you are well cared for. But if you don't want to come, you may stay here. The whole land is before you-go wherever you like. 5 If you decide to stay, then return to Gedaliah son of Ahikam and grandson of Shaphan. He has been appointed governor of Judah by the king of Babylon. Stay there with the people he rules. But it's up to you; go wherever you like." Then Nebuzaradan, the captain of the guard, gave Jeremiah some food and money and let him go.
Matthew Henry's Commentary on Jeremiah 40:2-5
Commentary on Jeremiah 40:1-6
(Read Jeremiah 40:1-6)
The captain of the guard seems to glory that he had been God's instrument to fulfil, what Jeremiah had been God's messenger to foretell. Many can see God's justice and truth with regard to others, who are heedless and blind as to themselves and their own sins. But, sooner or later, all men shall be made sensible that their sin is the cause of all their miseries. Jeremiah has leave to dispose of himself; but is advised to go to Gedaliah, governor of the land under the king of Babylon. It is doubtful whether Jeremiah acted right in this decision. But those who desire the salvation of sinners, and the good of the church, are apt to expect better times from slight appearances, and they will prefer the hope of being useful, to the most secure situations without it.