English translation
3827. It was narrated from Mu'āwiyah bin Qurrah, from his father, that the Messenger of Allāh ﷺ forbade these two plants, and said: "Whoever eats them should definitely not come near our Masjid." And he said: "If you must eat them, then cook them to death." He said: Meaning, onions and garlic. (Hasan)
