Jérémie 27:22 Halakha : Mishneh Torah, Kings and Wars

בָּבֶ֥לָה יוּבָ֖אוּ וְשָׁ֣מָּה יִֽהְי֑וּ עַ֠ד י֣וֹם פָּקְדִ֤י אֹתָם֙ נְאֻם־יְהוָ֔ה וְהַֽעֲלִיתִים֙ וַהֲשִׁ֣יבֹתִ֔ים אֶל־הַמָּק֖וֹם הַזֶּֽה׃ (פ)

Ils seront transportés à Babylone et y resteront jusqu’au jour où je me souviendrai d’eux, dit l’Éternel, pour les faire rapporter et réintégrer en ces lieux.

Mishneh Torah, Kings and Wars

A person should always dwell in Eretz Yisroel, even in a city where most of the residents are not Jewish, rather than live outside of the Land in a city where most of the residents are Jewish. For anyone who leaves the Land is considered as if he worships idols, as it says, “for they have driven me out this day that I should not cleave to the inheritance of the Lord, saying, ‘go serve other gods’” (I Samuel 26:19). And regarding the calamities it says, “Neither shall they enter into the land of Israel” (Ezekiel 13:9). Just as it is forbidden to leave the Land, so it is forbidden to leave Babylon for any other country, as it says, “They shall be carried to Babylon, and there shall they be” (Jeremiah 27:22).