Narrated Ibn 'Umar:
During the holy battle of Khaibar The Prophet (may peace be upon him) said, "Whoever ate from this plant (i.e. garlic) should not enter our mosque."
Source: Sahih Al Bukhari
Book 12; hadith 812
1703. Jabir (May Allah be pleased with him) said: The Prophet (sallallaahu ’alayhi wa sallam) said, "He who has eaten garlic or onion should keep away from us or our mosques.''
[Al-Bukhari and Muslim].
The narration in Muslim is: "He who has eaten onion or garlic or leek should not approach our mosque, because the angels are also offended by the strong smells) that offend the children of Adam.''
[Muslim].
Commentary: It is not permissible to eat raw onions, garlic or anything with a strong offending smell before going to the mosque. It is permissible, however, to eat them after their strong odour has vanished as a result of cooking or boiling. Since their odour vanishes after cooking, their use is permissible in cooked form.
During the holy battle of Khaibar The Prophet (may peace be upon him) said, "Whoever ate from this plant (i.e. garlic) should not enter our mosque."
Source: Sahih Al Bukhari
Book 12; hadith 812
1703. Jabir (May Allah be pleased with him) said: The Prophet (sallallaahu ’alayhi wa sallam) said, "He who has eaten garlic or onion should keep away from us or our mosques.''
[Al-Bukhari and Muslim].
The narration in Muslim is: "He who has eaten onion or garlic or leek should not approach our mosque, because the angels are also offended by the strong smells) that offend the children of Adam.''
[Muslim].
Commentary: It is not permissible to eat raw onions, garlic or anything with a strong offending smell before going to the mosque. It is permissible, however, to eat them after their strong odour has vanished as a result of cooking or boiling. Since their odour vanishes after cooking, their use is permissible in cooked form.