But if you continue to say, "We will not stay in this land," thus disobeying the voice of the Lord your God and saying, "No, we will go to the land of Egypt, where we shall not see war, or hear the sound of the trumpet, or be hungry for bread, and there we will stay," then hear the word of the Lord, O remnant of Judah. Thus says the Lord of hosts, the God of Israel: If you are determined to enter Egypt and go to settle there, then the sword that you fear shall overtake you there, in the land of Egypt; and the famine that you dread shall follow close after you into Egypt; and there you shall die. All the people who have determined to go to Egypt to settle there shall die by the sword, by famine, and by pestilence; they shall have no remnant or survivor from the disaster that I am bringing upon them (NRSV 42:13-17).
But if ye say, We will not dwell in this land, neither obey the voice of the Lord your God, Saying, No; but we will go into the land of Egypt, where we shall see no war, nor hear the sound of the trumpet, nor have hunger of bread; and there will we dwell: And now therefore hear the word of the Lord, ye remnant of Judah; Thus saith the Lord of hosts, the God of Israel; If ye wholly set your faces to enter into Egypt, and go to sojourn there; Then it shall come to pass, that the sword, which ye feared, shall overtake you there in the land of Egypt, and the famine, whereof ye were afraid, shall follow close after you there in Egypt; and there ye shall die. So shall it be with all the men that set their faces to go into Egypt to sojourn there; they shall die by the sword, by the famine, and by the pestilence: and none of them shall remain or escape from the evil that I will bring upon them (KJV 42:13-17).
God clearly spells out the consequences for disobeying him beforehand. This does nothing to deter anybody. People are swayed more by what they see in front of them in Judah—no food, war, enslavement, a destroyed city—than by some predicted future fate in Egypt. That's a pretty accurate description of human nature.