Yes, garlic and onion are among the elements mentioned in the "Qur'an," which Allah gave to the Children of Israel. They are natural antivirals, containing sulfur, flavonoids, quercetin, and so on. The best way to draw the most benefit from them is to eat them raw in a salad, with olive oil and black seed.
What the science says: garlic
What published research says about the remedies mentioned above, for context — these studies concern material causes; healing belongs to Allah.
Garlic
Garlic lowers blood pressure in people with hypertension and improves cholesterol, according to a meta-analysis of clinical trials (J Nutr, 2016) confirmed by a recent update (Nutr Rev, 2026). Precaution: raw garlic in large amounts thins the blood (anticoagulants, surgery); the hadith recommends not going to the mosque with its smell on you — cook it or take it in capsule form in the evening.