حَدَّثَنَا عُبَيْدُ اللهِ بْنُ عُمَرَ ، حَدَّثَنَا مُعْتَمِرٌ قَالَ : سَمِعْتُ لَيْثًا يَذْكُرُ ، عَنْ عَطَاءٍ ، عَنْ جَابِرٍ ، أَنَّ نَبِيَّ اللهِ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - قَالَ : مَنْ أَكَلَ الثُّومَ وَالْبَصَلَ وَالْكُرَّاثَ ، فَلَا يَقْرَبَنَّ مَسْجِدَنَا .
It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that the Prophet of Allah (peace and blessings be upon him) said: "Whoever has eaten garlic, onions or leeks must certainly not come near our mosque."