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.
muslim:565ʿAmr al-Nāqid > Ismāʿīl Ibn ʿUlayyah > al-Jurayrī > Abū Naḍrah > Abū Saʿīd > Lam Naʿd

We made no transgression but Khaybar was conquered. We, the Companions of the Messenger of Allah ﷺ, fell upon this plant. i e. garlic. because the people were hungry. We ate it to our heart's content and then made our way towards the mosque. The Messenger of Allah ﷺ sensed its odour and he said: He who takes anything of this offensive plant must not approach us in the mosque. The people said: Its (use) has been forbidden; its (use) bu been forbidden. This reached the Messenger of Allah ﷺ and he said: O people, I cannot forbid (the use of a thing) which Allah has made lawful, but (this garlic) is a plant the odour of which is repugnant to me.  

مسلم:٥٦٥وَحَدَّثَنِي عَمْرٌو النَّاقِدُ حَدَّثَنَا إِسْمَاعِيلُ ابْنُ عُلَيَّةَ عَنِ الْجُرَيْرِيِّ عَنْ أَبِي نَضْرَةَ عَنْ أَبِي سَعِيدٍ قَالَ لَمْ نَعْدُ

أَنْ فُتِحَتْ خَيْبَرُ فَوَقَعْنَا أَصْحَابَ رَسُولِ اللَّهِ ﷺ فِي تِلْكَ الْبَقْلَةِ الثُّومِ وَالنَّاسُ جِيَاعٌ فَأَكَلْنَا مِنْهَا أَكْلاً شَدِيدًا ثُمَّ رُحْنَا إِلَى الْمَسْجِدِ فَوَجَدَ رَسُولُ اللَّهِ ﷺ الرِّيحَ فَقَالَ مَنْ أَكَلَ مِنْ هَذِهِ الشَّجَرَةِ الْخَبِيثَةِ شَيْئًا فَلاَ يَقْرَبَنَّا فِي الْمَسْجِدِ فَقَالَ النَّاسُ حُرِّمَتْ حُرِّمَتْ فَبَلَغَ ذَاكَ النَّبِيَّ ﷺ فَقَالَ أَيُّهَا النَّاسُ إِنَّهُ لَيْسَ بِي تَحْرِيمُ مَا أَحَلَّ اللَّهُ لِي وَلَكِنَّهَا شَجَرَةٌ أَكْرَهُ رِيحَهَا  


See similar narrations below:

Collected by Aḥmad, Bayhaqī
ahmad:11583Ismāʿīl > Saʿīd > Abū Naḍrah > Abū Saʿīd > Lam Naʿd

We made no transgression but Khaybar was conquered. We, the Companions of the Messenger of Allah ﷺ, fell upon this plant. i e. garlic. because the people were hungry. We ate it to our heart's content and then made our way towards the mosque. The Messenger of Allah ﷺ sensed its odour and he said: He who takes anything of this offensive plant must not approach us in the mosque. The people said: Its (use) has been forbidden; its (use) bu been forbidden. This reached the Messenger of Allah ﷺ and he said: O people, I cannot forbid (the use of a thing) which Allah has made lawful, but (this garlic) is a plant the odour of which is repugnant to me. (Using translation from Muslim 565)  

أحمد:١١٥٨٣حَدَّثَنَا إِسْمَاعِيلُ أَخْبَرَنَا سَعِيدٌ عَنْ أَبِي نَضْرَةَ عَنْ أَبِي سَعِيدٍ قَالَ لَمْ نَعْدُ

أَنْ فُتِحَتْ خَيْبَرُ وَقَعْنَا أَصْحَابَ رَسُولِ اللهِ ﷺ فِي تِيكَ الْبَقْلَةِ فِي الثُّومِ فَأَكَلْنَا مِنْهَا أَكْلًا شَدِيدًا وَنَاسٌ جِيَاعٌ ثُمَّ رُحْنَا إِلَى الْمَسْجِدِ فَوَجَدَ رَسُولُ اللهِ ﷺ الرِّيحَ فَقَالَ مَنْ أَكَلَ مِنْ هَذِهِ الْبَقْلَةِ الْخَبِيثَةِ شَيْئًا فَلَا يَقْرَبْنَا فِي الْمَسْجِدِ فَقَالَ نَاسٌ حُرِّمَتْ حُرِّمَتْ فَبَلَغَ ذَلِكَ رَسُولَ اللهِ ﷺفَقَالَ أَيُّهَا النَّاسُ إِنَّهُ لَيْسَ لِي تَحْرِيمُ مَا أَحَلَّ اللهُ وَلَكِنَّهَا شَجَرَةٌ أَكْرَهُ رِيحَهَا  

ahmad:11084Ismāʿīl > al-Jurayrī > Abū Naḍrah > Abū Saʿīd > Lam Naʿd

[Machine] "Then when We opened up Khaibar, and conquered it, we settled in a valley with abundant date palm trees. We ate from the dates and found them extremely sweet. There were hungry people among us. Then we went to the mosque and the Messenger of Allah ﷺ noticed the scent of the dates. He said, 'Whoever has eaten anything from this foul tree should not come near the mosque.' The people started saying, 'It is forbidden, it is forbidden.' The Messenger of Allah ﷺ heard about it and said, 'O people! I do not forbid anything that Allah has made permissible. However, this particular tree has a foul odor.'"  

أحمد:١١٠٨٤حَدَّثَنَا إِسْمَاعِيلُ أَخْبَرَنَا الْجُرَيْرِيُّ عَنْ أَبِي نَضْرَةَ عَنْ أَبِي سَعِيدٍ قَالَ لَمْ نَعْدُ

أَنْ فَتَحْنَا خَيْبَرَ وَقَعْنَا فِي تِلْكَالْبَقْلَةِ فَأَكَلْنَا مِنْهَا أَكْلًا شَدِيدًا وَنَاسٌ جِيَاعٌ ثُمَّ رُحْنَا إِلَى الْمَسْجِدِ فَوَجَدَ رَسُولُ اللهِ ﷺ الرِّيحَ فَقَالَ مَنْ أَكَلَ مِنْ هَذِهِ الشَّجَرَةِ الْخَبِيثَةِ شَيْئًا فَلَا يَقْرَبْنَا فِي الْمَسْجِدِ فَقَالَ النَّاسُ حُرِّمَتْ حُرِّمَتْ فَبَلَغَ ذَلِكَ رَسُولَ اللهِ ﷺ فَقَالَ أَيُّهَا النَّاسُ إِنَّهُ لَيْسَ لِي تَحْرِيمُ مَا أَحَلَّ اللهُ وَلَكِنَّهَا شَجَرَةٌ أَكْرَهُ رِيحَهَا  

bayhaqi:5060Abū ʿAbdullāh al-Ḥāfiẓ > Aḥmad b. Jaʿfar > ʿAbdullāh b. Aḥmad b. Ḥanbal from my father > Ismāʿīl > al-Jurayrī > Abū Naḍrah > Abū Saʿīd al-Khudrī > Lam Naʿd

We made no transgression but Khaybar was conquered. We, the Companions of the Messenger of Allah ﷺ, fell upon this plant. i e. garlic. because the people were hungry. We ate it to our heart's content and then made our way towards the mosque. The Messenger of Allah ﷺ sensed its odour and he said: He who takes anything of this offensive plant must not approach us in the mosque. The people said: Its (use) has been forbidden; its (use) bu been forbidden. This reached the Messenger of Allah ﷺ and he said: O people, I cannot forbid (the use of a thing) which Allah has made lawful, but (this garlic) is a plant the odour of which is repugnant to me. (Using translation from Muslim 565)   

البيهقي:٥٠٦٠أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أنبأ أَحْمَدُ بْنُ جَعْفَرٍ ثنا عَبْدُ اللهِ بْنُ أَحْمَدَ بْنِ حَنْبَلٍ حَدَّثَنِي أَبِي ثنا إِسْمَاعِيلُ أنبأ الْجُرَيْرِيُّ عَنْ أَبِي نَضْرَةَ عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ قَالَ لَمْ نَعْدُ

أَنْ فُتِحَتْ خَيْبَرُ وَقَعْنَا فِي تِلْكَ الْبَقْلَةِ يَعْنِي الثُّومَ فَأَكَلْنَا مِنْهَا أَكْلًا شَدِيدًا وَنَاسٌ جِيَاعٌ ثُمَّ رُحْنَا إِلَى الْمَسْجِدِ فَوَجَدَ رَسُولُ اللهِ ﷺ الرِّيحَ فَقَالَ مَنْ أَكَلَ مِنْ هَذِهِ الشَّجَرَةِ الْخَبِيثَةِ شَيْئًا فَلَا يَقْرَبْنَا فِي الْمَسْجِدِ فَقَالَ النَّاسُ حُرِّمَتْ حُرِّمَتْ فَبَلَغَ ذَلِكَ النَّبِيَّ ﷺ فَقَالَ أَيُّهَا النَّاسُ إِنَّهُ لَيْسَ بِي تَحْرِيمُ مَا أَحَلَّ اللهُ وَلَكِنَّهَا شَجَرَةٌ أَكْرَهُ رِيحَهَا  

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