عَنْ أَبِي الرَّبَابِ قَالَ سَمِعْتُ مَعْقِلَ بْنَ يَسَارٍ رَضِيَ اللَّهُ عَنْهُ يَقُولُ كُنَّا مَعَ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ فِي مَسِيرٍ لَهُ فَنَزَلْنَا فِي مَكَانٍ كَثِيرِ الثُّومِ وَإِنَّ أُنَاسًا مِنَ الْمُسْلِمِينَ أَصَابُوا مِنْهُ ثُمَّ جَاءُوا إِلَى الْمُصَلَّى يُصَلُّونَ مَعَ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ فَنَهَاهُمْ عَنْهَا ثُمَّ جَاءُوا بَعْدَ ذَلِكَ إِلَى الْمُصَلَّى فَنَهَاهُمْ عَنْهَا ثُمَّ جَاءُوا بَعْدَ ذَلِكَ إِلَى الْمُصَلَّى فَنَهَاهُمْ عَنْهَا ثُمَّ جَاءُوا بَعْدَ ذَلِكَ إِلَى الْمُصَلَّى فَوَجَدَ رِيحَهَا مِنْهُمْ فَقَالَ مَنْ أَكَلَ مِنْ هَذِهِ الشَّجَرَةِ فَلَا يَقْرَبْنَا فِي مَسْجِدِنَا
Sayyiduna Ma’qil bin Yasar (may Allah be pleased with him) narrates that we were traveling with the Noble Prophet (peace and blessings be upon him). We stopped at a place where there was a lot of garlic. Some of the Muslims ate it and then came to the place of prayer to perform salah with the Noble Prophet (peace and blessings be upon him). The Noble Prophet (peace and blessings be upon him) forbade them from this. After that, they again came to the place of prayer after eating garlic; he forbade them. But after that, they again came to the place of prayer after eating garlic; the Noble Prophet (peace and blessings be upon him) then forbade them. After that, when the Noble Prophet (peace and blessings be upon him) sensed the smell that they had come after eating garlic and the like, he said: Whoever has eaten from this tree should not come near our mosque.