It is Forbidden for a Person with a Contagious Disease to Mix with others
Praise be to Allah the Lord of the Worlds. May His peace and blessings be upon our Prophet Mohammad and upon all his family and companions.
The General Iftaa` Department confirms that the preservation of human life is amongst the great purposes of Islamic Law. This is reflected in the Glorious Quran and the Sunnah of our Prophet Mohammad (PBUH), and the sayings of the great jurists from amongst the Imams of our Muslim nation.
In order to save souls and lives, Prophet Mohammad (PBUH) commanded that we protect ourselves from contagious diseases and adopt legitimate measures to limit their spread. Allah's Messenger (PBUH) said, "(There is) no 'Adwa (no contagious disease is conveyed without Allah's permission). nor is there any bad omen (from birds), nor is there any Hamah, nor is there any bad omen in the month of Safar, and one should run away from the leper as one runs away from a lion." {Transmitted by Bukhari}. He (PBUH) also said: "The cattle (sheep, cows, camels, etc.) suffering from a disease should not be mixed up with healthy cattle, (or said: "Do not put a patient with a healthy person). " (as a precaution) {Transmitted by Bukhari & Muslim}.
Prophet Mohammad (PBUH) also commanded resorting to quarantine as a means to prevent the spread of contagious diseases. He said, "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." (Transmitted by Bukhari & Muslim).
Our great jurists have taken the above into account. Sheikh al-Islam Imam Zakariya al-Ansari al-Shafi'i said:" The judge 'Iyad has narrated from the scholars that the leper is prevented from the mosque, Friday prayer, and mixing with the people." (Asna al-Matalib, V.1:215).Imam al-Shihab ibn Hajar al-Haytami al-Shafi'i stated: "The reason for preventing someone like a leper is fear of harm, and in such situation prevention is obligatory." (Al-Fatawa al-Fiqhiyyah al-Kubra, V.1:212).
Based on the above, it is obligatory for everyone to fully comply with all health and regulatory instructions issued by the competent authorities, in obedience to Allah the Almighty and to those in authority. Allah says {What means}: " O ye who believe! Obey God, and obey the Apostle, and those charged with authority among you." {An-Nisa`, 59}.
Everyone must also take the necessary means to prevent the transmission and spread of the disease, such as wearing a mask, maintaining safety distances, staying away from gatherings, avoiding shaking hands and kissing, and taking appropriate medications and vaccines. It is also forbidden for someone who has been infected with a contagious disease or who is suspected of being infected with it to transmit it to others by mixing with them. He/she must take the necessary health precautions, such as quarantine, even in their home. Moreover, it is forbidden for him/her to hide their illness so as not to harm others.
We ask Allah Almighty to bless our country along with all Muslim countries with safety and security, and to protect us from diseases and ailments. Verily, He is capable of that, and our last prayer is that all praise be to Allah, the Lord of the Worlds.