The Prophet ﷺ laid down the principle of quarantine fourteen centuries ago: "If you hear of a plague in a land, do not enter it; and if it breaks out in a land where you are, do not leave it fleeing from it" (al-Bukhārī 5728, Muslim 2218). ʿUmar ibn al-Khaṭṭāb acted on this hadith at Sargh when ʿAbd al-Raḥmān ibn ʿAwf narrated it to him, and he turned the army back from plague-stricken Shām; to Abū ʿUbaydah's objection he answered, "Yes, we flee from the decree of Allah to the decree of Allah" (al-Bukhārī 5729). His ﷺ statement "there is no ʿadwā" negates the pre-Islamic belief that disease spreads by itself independently of Allah's will — it does not deny transmission by Allah's decree, which is why in the same hadith he said, "Flee from the leper as you flee from the lion" (al-Bukhārī 5707). Complying with lawful public-health isolation is therefore following the Sunnah, not a lack of tawakkul.
Q&A · Health & Halal Food
What does Islam say about quarantine and epidemics?
Evidence — the daleel
Sahih al-Bukhari 5728 ṢaḥīḥSahih Muslim 2218 ṢaḥīḥSahih al-Bukhari 5729 ṢaḥīḥSahih al-Bukhari 5707 Ṣaḥīḥ
On deen2u
Informational, not a personal fatwa. Consult a qualified scholar for rulings on your situation.