ذِكْرُ مَا يُسْتَحَبُّ لِلْإِمَامِ أَنْ يُقْصِيَ مِنْ نَفْسِهِ آكِلَ الْبَصَلِ مِنْ رَعِيَّتِهِ إِلَى أَنْ يَذْهَبَ رِيحُهَا
The Messenger of Allah ﷺ along with his Companions happened to pass by a field in which onions were sown. The people stopped there and ate out of that, but some of them did not eat. Then they (Propbet's Companions) went to him. He (first) called those who had not eaten the onions and kept the others (who had taken onions) waiting till its odour vanished. (Using translation from Muslim 566)
«أَنَّ رَسُولَ اللَّهِ ﷺ مَرَّ عَلَى زَرَّاعَةِ بَصَلٍ هُوَ وَأَصْحَابُهُ فَنَزَلَ نَاسٌ فَأَكَلُوا مِنْهُ وَلَمْ يَأْكُلْ مِنْهُ آخَرُونَ فَرُحْنَا إِلَيْهِ فَدَعَا الَّذِينَ لَمْ يَأْكُلُوا الْبَصَلَ وَأَخَّرَ الْآخَرِينَ حَتَّى ذَهَبَ رِيحُهَا»