tafsir of 2:125
The Holy Prophet g has asked the people not to enter a mosque, if they have just eaten raw onion or garlic, and has also forbidden very small children and mad men to enter a mosque for fear of their polluting it.