Jabir reported God’s Messenger as saying, “If anyone eats of this offensive tree* he must not approach our mosque, for the angels are harmed by the same things as men.”
* Bukhari At’ima, 49, shows the Prophet’s objection to onions and garlic. One of these may be meant here.
(Bukhari and Muslim.)