Sahih Muslim · Hadith 1282
The Book of Mosques and Places of Prayer - كتاب الْمَسَاجِدِ وَمَوَاضِعِ الصَّلاَةِ
وحدثني محمد بن حاتم، حدثنا يحيى بن سعيد، عن ابن جريج، قال أخبرني عطاء، عن جابر بن عبد الله، عن النبي صلى الله عليه وسلم قال " من أكل من هذه البقلة الثوم - وقال مرة من أكل البصل والثوم والكراث - فلا يقربن مسجدنا فإن الملائكة تتأذى مما يتأذى منه بنو آدم " .
Jabir b. 'Abdullah reported the Apostle of Allah (may peace be upon him) mying: He who eats of this (offensive) plant, i. e garlic, and sometirres he said: He who eats onion and garlic and leek, should not approach our mosque for the angels are harmed by the same things as the children of Adam.
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).