Using toothpaste when fasting?

Re: Using toothpaste when fasting?

The Messenger of Allah (sal Allahu alaihi wa sallam) said: “Anyone who eats garlic and onions or leeks should not come near our Masjid. The angels are harmed by what harms the sons of Adam.” [Sahih Muslim]