The Messenger of Allah ﷺ said: He who eats of this (offensive) plant must not approach our mosque, till its odor dies: (plant signifies) garlic.
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ مَنْ أَكَلَ مِنْ هَذِهِ الْبَقْلَةِ فَلاَ يَقْرَبَنَّ مَسَاجِدَنَا حَتَّى يَذْهَبَ رِيحُهَا يَعْنِي الثُّومَ