عن أبي سعيد الخدري رضي الله عنه قالَ: قالَ رسولُ اللهِ صلى الله عليه وسلم : "يُوشَكُ أنْ يكونَ خيرَ مالِ المسلمِ غَنَمٌ يَتَّبعُ بها شَعَفَ الجبالِ، ومواقعَ القطرِ يَفِرُّ بدينِهِ من الفتنِ".
The Hadīth indicates the preference of living in isolation at times of tribulation, unless a person has the ability to remove such tribulation. In this case, he would be obliged to strive to remove it, either as an individual religious duty or a collective duty (i.e. if someone undertook and competed it, it is waived from the obligation of the others) according to the situation and ability.
As to the times that are free of tribulation, scholars held different opinions regarding which is better: to isolate oneself from people or to interact with them? The chosen opinion is that interaction is better for the one who believes that he would most likely not yield to temptations of committing sin. “to flee with his religion from tribulations” means to escape for fear that his religious commitment would be affected.
For this reason, man was commanded to migrate from the lands of infidelity to the lands of Islam, and from countries where immorality is rampant to those where righteousness prevails. So, this should be done when people and times change.
Download for free and never miss a prayer again