New American Standard Bible (NASB)
Jeremiah 39
14 they even sent and took Jeremiah out of the court of the guardhouse and entrusted him to Gedaliah, the son of Ahikam, the son of Shaphan, to take him home. So he stayed among the people.
15 Now the word of the Lord had come to Jeremiah while he was confined in the court of the guardhouse, saying,
16 "Go and speak to Ebed-melech the Ethiopian, saying, ’Thus says the Lord of hosts, the God of Israel, "Behold, I am about to bring My words on this city for disaster and not for prosperity; and they will take place before you on that day.
17 But I will deliver you on that day," declares the Lord, "and you will not be given into the hand of the men whom you dread.
18 For I will certainly rescue you, and you will not fall by the sword; but you will have your own life as booty, because you have trusted in Me," declares the Lord.’"
Jeremiah 40
1 The word which came to Jeremiah from the Lord after Nebuzaradan captain of the bodyguard had released him from Ramah, when he had taken him bound in chains among all the exiles of Jerusalem and Judah who were being exiled to Babylon.
2 Now the captain of the bodyguard had taken Jeremiah and said to him, "The Lord your God promised this calamity against this place;
3 and the Lord has brought it on and done just as He promised. Because you people sinned against the Lord and did not listen to His voice, therefore this thing has happened to you.
4 But now, behold, I am freeing you today from the chains which are on your hands. If you would prefer to come with me to Babylon, come along, and I will look after you; but if you would prefer not to come with me to Babylon, never mind. Look, the whole land is before you; go wherever it seems good and right for you to go."
5 As Jeremiah was still not going back, he said, "Go on back then to Gedaliah the son of Ahikam, the son of Shaphan, whom the king of Babylon has appointed over the cities of Judah, and stay with him among the people; or else go anywhere it seems right for you to go." So the captain of the bodyguard gave him a ration and a gift and let him go.
6 Then Jeremiah went to Mizpah to Gedaliah the son of Ahikam and stayed with him among the people who were left in the land.