Mishkat al-Masabih
Book 30, Hadith 236
وَعَنِ ابْنِ عَبَّاسٍ قَالَ: خَرَجَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فِي مَرَضِهِ الَّذِي مَاتَ فِيهِ حَتَّى جَلَسَ عَلَى الْمِنْبَرَ فَحَمِدَ اللَّهَ وَأَثْنَى عَلَيْهِ ثُمَّ قَالَ: «أَمَّا بَعْدُ فَإِنَّ النَّاسَ يَكْثُرُونَ وَيَقِلُّ الْأَنْصَارُ حَتَّى يَكُونُوا فِي النَّاسِ بِمَنْزِلَةِ الْمِلْحِ فِي الطَّعَامِ فَمَنْ وَلِيَ مِنْكُمْ شَيْئًا يَضُرُّ فِيهِ قَوْمًا وَيَنْفَعُ فِيهِ آخَرين فليقبل عَن محسنهم وليتجاوز عَن مسيئهم» رَوَاهُ البُخَارِيّ
Ibn ʿAbbas reported: During the illness in which he died, the Prophet ﷺ came out and sat on the pulpit. He praised Allah and extolled Him, then said: ‘To proceed: People will increase while the Ansar will decrease, until among the people they are like salt in food. Whoever among you is given authority over something, and in it harms some people and benefits others, let him accept the good from those of them who do good and pardon those of them who do wrong.’ Al-Bukhari transmitted it.