Question:
Can a person who has contracted a contagious disease be barred from entering the mosque?
Answer:
If someone has contracted a contagious and deadly disease, the people of the neighbourhood may require him not to join the congregational prayer. It is permissible to do this for the public good.
❀ Jabir bin Abdullah (may Allah be pleased with him) narrates that the Messenger of Allah ﷺ said:
من أكل من هذه الشجرة، يريد التوم، فلا يغشانا فى مساجدنا.
“Whoever eats anything from the plant of garlic should not come to our mosque (to pray).”
❀ The words in Sahih Muslim are:
من أكل البصل والتوم والكراث فلا يقربن مسجدنا، فإن الملائكة تتأذى مما يتأذى منه بنو آدم.
“Whoever eats onion, garlic or leek (a foul-smelling vegetable) should not come near our mosque, because the angels are harmed by what harms the children of Adam.”
❀ Allama Ibn al-Arabi (may Allah have mercy on him)
says:
فيه دليل على أن كل ما يتأذى به كالمجذوم وشبهه يبعد عن المسجد وحلق الذكر.
“This hadith is evidence that whoever is a cause of harm to others, such as a leper and the like, will be kept away from the mosque and from gatherings of remembrance.”