John Calvin's Bible Commentary
Jeremiah 42:13
God having promised, that the counsel he gave to the Jews would be good and safe, now, on the other hand, threatens them, that if they disobeyed, everything they would attempt would end miserably. They had not expressly asked whether it would be for their good to go into Egypt, or whether it would be pleasing to God; but God, who penetrates into all hidden purposes, anticipated them, and declared that their going would be unhappy, if they fled into Egypt. We hence see how the Prophet, or rather God himself, who spoke by his servant, tried by all means to keep them in the way of duty.
He then says, If ye say, We shall not dwell in this land, it shall be ill with you, he says: but before he denounced punishment, he shewed that they deserved to be destroyed, if they went to Egypt; for had the thing been in itself lawful, yet to attempt such a thing against the express will of God was, as we know, an impious and a diabolical presumption and rashness. God had forbidden them specifically in his Law ever to set their hearts on Egypt, (Deuteronomy 17:16;) and he had often confirmed the same thing by his Prophets, (Isaiah 30:2; Isaiah 31:1;) and now again he seals the former prophecies, as he expressly forbids them to go to Egypt. The Prophet then sets this crime before their eyes: “If ye flee into Egypt, what is it that compels you? even because ye will not obey God.” There is then great weight in these words, Nor obey the voice of Jehovah your God; as though he had said, that they could not think of Egypt, except they designedly, as it were, rejected the authority of God, and resisted his counsel.