حَدَّثَنَا أَبُو خَيْثَمَةَ ، حَدَّثَنَا يَحْيَى بْنُ سَعِيدٍ ، حَدَّثَنَا مُحَمَّدُ بْنُ عَمْرٍو ، حَدَّثَنِي أَبُو سَلَمَةَ ، عَنْ أَبِي هُرَيْرَةَ ، قَالَ : وَجَدَ رَسُولُ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ رِيحَ ثُومٍ فِي الْمَسْجِدِ ، فَقَالَ : مَنْ أَكَلَ مِنْ هَذِهِ الشَّجَرَةِ فَلَا يَقْرَبَنَّ مَسْجِدَنَا .
It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) noticed the smell of garlic in the mosque, so he (peace and blessings be upon him) said: "Whoever has eaten anything of this plant must not come near our mosque."