Foods (Kitab Al-At'imah)
Dawud :: Book 27 : Hadith 3817
Narrated Al-Mughirah ibn Shu'bah:
I ate garlic and came to the place where the Prophet (peace_be_upon_him) was praying; one rak'ah of prayer had been performed when I joined. When I entered the mosque, the Prophet (peace_be_upon_him) noticed the odour of garlic.
When the Apostle of Allah (peace_be_upon_him) finished his prayer, he said: He who eats from this plant should not come near us until its odour has gone away.
When I finished the prayer, I came to the Apostle of Allah (peace_be_upon_him) and said: Apostle of Allah, do give me your hand. Then I put his hand in the sleeve of my shirt, carrying it to my chest to show that my chest was fastened with a belt. He said: You have a (valid) excuse.