Al-Kāfi - Volume 6 > The Garlic
Hadith #1

عَلِيُّ بْنُ إِبْرَاهِيمَ عَنْ أَبِيهِ عَنِ ابْنِ أَبِي عُمَيْرٍ عَنْ عُمَرَ بْنِ أُذَيْنَةَ عَنْ مُحَمَّدِ بْنِ مُسْلِمٍ عَنْ أَبِي جَعْفَرٍ ( عليه السلام ) قَالَ سَأَلْتُهُ عَنْ أَكْلِ الثُّومِ فَقَالَ إِنَّمَا نَهَى رَسُولُ اللَّهِ ( صلى الله عليه وآله ) عَنْهُ لِرِيحِهِ فَقَالَ مَنْ أَكَلَ هَذِهِ الْبَقْلَةَ الْخَبِيثَةَ فَلَا يَقْرَبْ مَسْجِدَنَا فَأَمَّا مَنْ أَكَلَهُ وَ لَمْ يَأْتِ الْمَسْجِدَ فَلَا بَأْسَ .

1. Ali ibn Ibrahim has narrated from his father from ibn abu ‘Umayr from ‘Umar ibn ‘Udhaynah from Muhammad ibn Muslim who has said the following: “I once asked abu Ja‘far, ‘Alayhi al-Salam, about garlic. He (the Imam) said, ‘The Messenger of Allah, O Allah, grant compensation to Muhammad and his family worthy of their services to Your cause, prohibited it only because of its smell, saying, “Whoever eats this filthy vegetable must not come near our Masjid, however, for those who eat it and do not come to the Masjid it is not unlawful.’””