Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:5051Muḥammad b. ʿAbdullāh al-Ḥāfiẓ > Abū Bakr b. Isḥāq al-Faqīh > Abū al-Muthanná > Musaddad > ʿAbd al-Wārith > ʿAbd al-ʿAzīz b. Ṣuhayb > Qulnā Liʾanas b. Mālik Mā

[Machine] Did you hear the Messenger of Allah ﷺ saying about garlic? He said, "Whoever has eaten from this tree should not come near us or pray with us."  

البيهقي:٥٠٥١أَخْبَرَنَا مُحَمَّدُ بْنُ عَبْدِ اللهِ الْحَافِظُ أنبأ أَبُو بَكْرِ بْنُ إِسْحَاقَ الْفَقِيهُ أنبأ أَبُو الْمُثَنَّى ثنا مُسَدَّدٌ ثنا عَبْدُ الْوَارِثِ عَنْ عَبْدِ الْعَزِيزِ بْنِ صُهَيْبٍ قَالَ قُلْنَا لِأَنَسِ بْنِ مَالِكٍ مَا

سَمِعْتَ رَسُولَ اللهِ ﷺ يَقُولُ فِي الثُّومِ؟ قَالَ قَالَ النَّبِيُّ ﷺ مَنْ أَكَلَ مِنْ هَذِهِ الشَّجَرَةِ فَلَا يَقْرَبْنَا وَلَا يُصَلِّيَنَّ مَعَنَا  

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنْ مُسَدَّدٍ وَغَيْرِهِ وَأَخْرَجَهُ مُسْلِمٌ مِنْ حَدِيثِ ابْنِ عُلَيَّةَ عَنْ عَبْدِ الْعَزِيزِ

See similar narrations below:

Collected by Mālik
malik:1-30Yaḥyá > Mālik > Ibn Shihāb > Saʿīd b. al-Musayyab

Yahya related to me from Malik from Ibn Shihab from Said ibn al- Musayyab that the Messenger of Allah ﷺ said, "Anyone who eats this plant should not come near our mosques. The smell of the garlic will offend us."  

مالك:١-٣٠حَدَّثَنِي يَحْيَى عَنْ مَالِكٍ عَنِ ابْنِ شِهَابٍ عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ

أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ مَنْ أَكَلَ مِنْ هَذِهِ الشَّجَرَةِ فَلاَ يَقْرُبْ مَسَاجِدَنَا يُؤْذِينَا بِرِيحِ الثُّومِ