Answer:
(Fatwa: 723/673=D-1429)
It is not in the Hadith. However it is written in Hadith that those eating onions should not come to mosque so that people performing salah may not be disturbed with its smell.In the Hadith, there is no mention of harm or advantage of eating onions before or after Maghrib. We do not know if there is any medical reason.
Allah (Subhana Wa Ta’ala) knows Best
Darul Ifta,
Darul Uloom Deoband
