عَنْ جَابِرٍ رَضِيَ اللَّهُ عَنْهُ قَالَ نَهَى رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ عَنْ أَكْلِ الْبَصَلِ وَالْكُرَّاثِ فَغَلَبَتْنَا الْحَاجَةُ فَأَكَلْنَا مِنْهُ فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ مَنْ أَكَلَ مِنْ هَذِهِ الشَّجَرَةِ الْمُنْتِنَةِ فَلَا يَقْرَبَنَّ مَسْجِدَنَا فَإِنَّ الْمَلَائِكَةَ تَتَأَذَّى مِمَّا يَتَأَذَّى مِنْهُ الْإِنْسُ
Sayyiduna Jabir bin Abdullah (may Allah be pleased with them both) narrates that the Noble Prophet (peace and blessings be upon him and his family) forbade eating onions and leeks, but our need overcame us and we ate them. Then the Noble Prophet (peace and blessings be upon him and his family) said: Whoever has eaten from this foul-smelling tree should not come near our mosque, for the angels are harmed by that which harms human beings.