Jeremiah 42:15-18

42:15 If you people who remain in Judah do that, then listen to what the Lord says. The Lord God of Israel who rules over all says, ‘If you are so determined to go to Egypt that you go and settle there, 42:16 the wars you fear will catch up with you there in the land of Egypt. The starvation you are worried about will follow you there to Egypt. You will die there. 42:17 All the people who are determined to go and settle in Egypt will die from war, starvation, or disease. No one will survive or escape the disaster I will bring on them.’ 42:18 For the Lord God of Israel who rules over all says, ‘If you go to Egypt, I will pour out my wrath on you just as I poured out my anger and wrath on the citizens of Jerusalem. You will become an object of horror and ridicule, an example of those who have been cursed and that people use in pronouncing a curse. You will never see this place again.’

Jeremiah 43:5-7

43:5 Instead Johanan son of Kareah and all the army officers led off all the Judean remnant who had come back to live in the land of Judah from all the nations where they had been scattered. 43:6 They also led off all the men, women, children, and royal princesses that Nebuzaradan, the captain of the royal guard, had left with Gedaliah, the son of Ahikam and grandson of Shaphan. This included the prophet Jeremiah and Baruch son of Neriah. 43:7 They went on to Egypt because they refused to obey the Lord, and came to Tahpanhes.