The Book of the Prohibited actions
Riyad as-Salihin #1023
كتاب الأمور المنهي عنها
وعن أنس رضي الله عنه قال: قال النبي صلى الله عليه وسلم: «من أكل من هذه الشجرة، فلا يقربنا، ولا يصلين معنا» ((متفق عليه)).
Anas (May Allah be pleased with him) said:
The Prophet (ﷺ) said, “He who has eaten from this plant (i.e., garlic) should not approach us and should not offer Salat (prayer) along with us.”.
وعن أنس رضي الله عنه قال: قال النبي صلى الله عليه وسلم : "من أكل من هذه الشجرة، فلا يقربنا، ولا يصلين معنا" ((متفق عليه)).
The Prophet (ﷺ) said, "He who has eaten from this plant (i.e., garlic) should not approach us and should not offer Salat (prayer) along with us.".
— Riyad as-Salihin, Hadith 1023