Allah’s name I begin with and blessings and salutations on the best of all creation, Muhammad, May Allah bless him and grant him peace.
The ablution (Wudhu) does not break if you smoke. However, it is important that the mouth is rinsed thoroughly so that no smell remains either in the mouth, hands or the clothing. Below are a few hadiths regarding the importants of keeping stench away from the mosque:
The Messenger of Allah, may Allah bless him and grant him peace, states, “Whoever eats onions, garlic or leeks should not approach our Mosque, because whatever offends the sons of Adam may offend the angels.”
Ata, may Allah bless him and grant him peace, narrates, I heard Jabir bin ‘Abd Allah, may Allah be pleased with him, saying, The Messenger of Allah, may Allah bless him and grant him peace, said, “Whoever eats (from) this plant (he meant garlic) should keep away from our mosque.” I said, “What does he mean by that?” He replied, “I think he means only raw garlic.”
Muawwiyah Ibn Qurrah, may Allah be pleased with him, narrates, “The Apostle of Allah, may Allah bless him and grant him peace, forbade these two plants (i.e. garlic and onions) and he said, “He who eats them should not come near our mosque. If it is necessary to eat them, make them dead by cooking, that is, onions and garlic.”
Allah, The Exalted, and the Messenger, May Allah bless him and grant him peace, know best.
3. Abu Dawood
(note: This hadith highlights the use of caution when eating onion and garlic – the term “prohibited” does not mean that they are haram)
[Answer provided by: Abd al Mannan]