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:5052Abū ʿAbdullāh al-Ḥāfiẓ > Abū Bakr b. Isḥāq > Aḥmad b. Salamah > Isḥāq And Muḥammad b. Rāfiʿ And Muḥammad b. Yaḥyá Wahadhā Ḥadīthuh > ʿAbd al-Razzāq > Maʿmar > al-Zuhrī > Ibn al-Musayyib > Abū Hurayrah

[Machine] The Messenger of Allah ﷺ said, "Whoever eats from this tree, meaning garlic, let him not approach our mosque, and in the narration of Ibn Rafi', let him not come near our mosque, and let him not give adhan with the smell of garlic."  

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

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

رَوَاهُ مُسْلِمٌ فِي الصَّحِيحِ عَنْ مُحَمَّدِ بْنِ رَافِعٍ

See similar narrations below:

Collected by Mālik, Aḥmad
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."  

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

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

ahmad:7610ʿAbd al-Razzāq > Maʿmar > al-Zuhrī > Ibn al-Musayyab > Abū Hurayrah

[Machine] The Messenger of Allah ﷺ said: "Whoever eats from this tree, meaning garlic, should not come near our mosque and should not harm us with the smell of garlic."  

أحمد:٧٦١٠حَدَّثَنَا عَبْدُ الرَّزَّاقِ حَدَّثَنَا مَعْمَرٌ عَنِ الزُّهْرِيِّ عَنِ ابْنِ الْمُسَيَّبِ عَنْ أَبِي هُرَيْرَةَ قَالَ

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