Jami` at-Tirmidhi #1806
The Book on Food 25:20
Narrated Jabir:
That the Messenger of Allah (ﷺ) said: "Whoever eats from these - the first time, he said garlic, then he said - garlic, onion, and leek, then let him not approach our Masjid."[Abu 'Eisa said:] This Hadith is Hasan Sahih.He said: There are narrations on this topic from 'Umar, Abu Ayyub, Abu Hurairah, Abu Sa'eed, Jabir bin Samurah, Qurrah [bin Iyas Al-Muzani] and Ibn 'Umar.