Why did the Rambam live in Egypt despite the prohibition against returning there?
The article offers three explanations: the prohibition concerns returning from Eretz Yisroel by the same desert route, whereas the Rambam came from Spain; alternatively, the special prohibition against residing in Egypt does not apply during exile. A third explanation distinguishes moving there permanently from a permitted temporary stay for personal reasons. The Rambam initially did not intend permanent residence, and the government later compelled him to remain because of his role as a court physician.
A practical halachic question: the final ruling is for your rabbi.
The source brings differing opinions.
Quote from the source«The Rambam originally did not return to Egypt with the intention to take up permanent residency.»
- Author
- Редакция «Beis Moshiach»
- Source
- Beis Moshiach - English — 753, p. 5