حَدَّثَنَا حَفْصُ بْنُ عُمَرَ الرَّقِّيُّ، ثنا قَبِيصَةُ بْنُ عُقْبَةَ، ثنا سُفْيَانُ الثَّوْرِيُّ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ عَابِسٍ، عَنِ الْعَلَاءِ بْنِ خَبَّابٍ، أَنَّ رَسُولَ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ قَالَ: «مَنْ أَكَلَ مِنْ هَذِهِ الشَّجَرَةِ الْخَبِيثَةِ فَلَا يَقْرَبَنَّ مَسْجِدِنَا» أَعْنِي الثَّوْمَ
It is narrated from Sayyiduna Ala' bin Khabbab (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever eats from this foul-smelling plant, let him not come near our mosque" - I mean garlic.