Should You Attend the Masjid While Sick, and Where Should You Stand If You Do?
Question
Asalamu Alaykum. If I have a cold/flu/covid, should I pray at home or in congregration for both Friday prayer and otherwise. Also if I am required to pray in congregation should i pray in the back alone or stand next to others. I am not sure because I heard of a of the hadith about a person is not meant to enter the masjid if they eat garlic until the odor of the garlic disappears. When i researched online some say to not go to the masjid, some say you must still go, and some say you can go but pray in the back. I am confused and just want to do what is best for my akhirah inshaAllah. Jazak Allahu khayr.
Answer
Alhamdulillah, wassalatu wassalamu ala rasulillah, wa ala alihi wa sahbihi ajmain.
1. The Shari Context
Islam places great importance on congregational prayer and Jumuah, but it also strongly emphasizes preventing harm and protecting others.
The Prophet said regarding unpleasant odor:
“Whoever eats garlic or onion should keep away from us and our mosque.”
Sahih Muslim
The reason given by the scholars is that such a person would harm and disturb others in the masjid.
If this applies to something like odor, then by greater reasoning it applies to illness that can harm others, such as contagious sickness.
At the same time, Jumuah is obligatory upon those who are able:
“O you who believe, when the call is made for prayer on Friday, then hasten to the remembrance of Allah.”
Surat al Jumuah 62:9
But this obligation is conditioned by ability and absence of harm.
2. Scholarly Discussion
The scholars of the four madhahib agree that a person may be excused from Jumuah and congregation due to valid reasons such as illness.
They explicitly mention:
- Fear of harm to oneself
- Fear of harming others
- Severe difficulty or hardship
Contagious illness falls under these categories. Contemporary scholars have emphasized this even more clearly, especially in cases like flu or COVID, where there is a risk of transmission.
As for attending while ill but isolating in the back, the scholars generally do not recommend this if harm is still present, because the purpose of the concession is to prevent harm altogether, not reduce it slightly.
3. Application to the Question
If you have a contagious illness such as flu, COVID, or a strong cold, then:
You are excused from attending the masjid, including Jumuah.
In this case:
- You should pray at home
- For Jumuah, you pray Dhuhr instead
- There is no sin upon you for missing the congregation
In fact, staying home in this situation is better, because it protects others from harm.
If your illness is mild and not contagious, or you are no longer spreading illness, then you may attend the masjid.
However, if there is still a risk of spreading illness, then going to the masjid, even if you stand in the back, is not the correct approach, because the harm is not fully removed.
4. Relevant Usul Principle
لا ضرر ولا ضرار
Harm must neither be inflicted nor reciprocated
This principle means that a Muslim is not allowed to cause harm to others. In this case, attending the masjid while carrying a contagious illness may expose others to harm. Therefore, the Sharia gives a concession to stay home, and this is not a deficiency in one’s worship, but rather acting in accordance with Islamic principles.
Final Ruling
If you have a contagious illness, you should pray at home and not attend the masjid, including Jumuah. You will pray Dhuhr instead of Jumuah, and there is no sin upon you. Standing in the back while sick is not the correct solution if there is still a risk of harming others. Protecting others from harm takes precedence.
And Allah knows best.