In Islam, it is recommended not to eat raw garlic prior to going to the mosque. This is based on several hadith.