Shaykh Ibn Bāz (رحمه الله) was asked:
When a man suffers from what is called “influenza”—this being an illness despite which a man is still able to leave his house, though it is a “contagious illness” as the doctors say—would it be permitted for this man to pray in his house so that he does not harm or annoy others, using the analogy of the one who ate garlic or onions and was prohibited from coming to the mosque. [Keeping in mind that] the cold (zukām) is a compelling [type of] illness and is not [like] food that a man eats through choice?
Read the full article: