Undesirability of Entering the Mosque after Eating raw Onion or Garlic

Riyad-us-Saliheen 1701
Ibn 'Umar (May Allah be pleased with them) said: The Prophet (PBUH) said, "He who has eaten garlic should not come to our mosque."

[Al-Bukhari and Muslim]

The narration in Muslim is: "He who has eaten garlic should not come to our mosques."