[Machine] The Prophet ﷺ forbade the people during the time of the battle of Khaybar from eating onions and garlic. However, some people ate them and then came to the mosque. The Prophet ﷺ said, "Did I not forbid you from these two trees?" They replied, "Indeed, O Messenger of Allah, but we were extremely hungry." The Prophet ﷺ said, "Whoever has eaten them should not come near our mosque, for verily the angels are offended by what offends the children of Adam."
أَنَّ النَّبِيَّ ﷺ نَهَى زَمَنَ خَيْبَرَ عَنِ الْبَصَلِ وَالْكُرَّاثِفَأَكَلَهُمَا قَوْمٌ ثُمَّ جَاءُوا إِلَى الْمَسْجِدِ فَقَالَ النَّبِيُّ ﷺ أَلَمْ أَنْهَ عَنْ هَاتَيْنِ الشَّجَرَتَيْنِ الْمُنْتِنَتَيْنِ؟ قَالُوا بَلَى يَا رَسُولَ اللهِ وَلَكِنْ أَجْهَدَنَا الْجُوعُ فَقَالَ رَسُولُ اللهِ ﷺ مَنْ أَكَلَهُمَا فَلَا يَحْضُرْ مَسْجِدَنَا فَإِنَّ الْمَلَائِكَةَ تَتَأَذَّى مِمَّا يَتَأَذَّى مِنْهُ بَنُو آدَمَ