كتاب وقوت الصلاة
1  
The Times of Prayer

Yahya related to me from Malik from Ibn Shihab from Said ibn al- Musayyab that the Messenger of Allah, may Allah bless him and grant him peace, said, "Anyone who eats this plant should not come near our mosques. The smell of the garlic will offend us."

حَدَّثَنِي يَحْيَى، عَنْ مَالِكٍ، عَنِ ابْنِ شِهَابٍ، عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏ "‏ مَنْ أَكَلَ مِنْ هَذِهِ الشَّجَرَةِ فَلاَ يَقْرُبْ مَسَاجِدَنَا يُؤْذِينَا بِرِيحِ الثُّومِ ‏"‏ ‏.‏
Sunnah.com reference : Book 1, Hadith 30
USC-MSA web (English) reference : Book 1, Hadith 30
Arabic reference : Book 1, Hadith 31