Imam al-Nawawi's introduction to this chapter
قَالَ الله تَعَالَى: ﴿فَلاَ تُزَكُّوا أنْفُسَكُمْ هُوَ أعْلَمُ بِمَنِ اتَّقَى﴾ [النجم: ٣٢]، وقال تَعَالَى: ﴿إنَّمَا السَّبِيلُ عَلَى الَّذِينَ يَظْلِمُونَ النَّاسَ وَيَبْغُونَ في الأَرْضِ بِغَيْرِ الحَقِّ أُوْلَئِكَ لَهُمْ عَذَابٌ أَليمٌ﴾ [الشورى: ٤٢]
Allah Almighty said: "So do not claim purity for yourselves; He knows best who is God-fearing." (Surah al-Najm: 32)
And He, the Exalted, said: "The blame is only upon those who wrong people and rebel in the land without right. It is they who will have a painful punishment." (Surah al-Shura: 42)
وعن عياضِ بن حمارٍ - رضي الله عنه - قَالَ: قَالَ رسولُ اللهِ - صلى الله عليه وسلم: «إنَّ اللهَ تَعَالَى أوْحَى إلَيَّ أَنْ تَوَاضَعُوا حَتَّى لا يَبْغِيَ أَحَدٌ عَلَى أحَدٍ، وَلاَ يَفْخَرَ أَحَدٌ عَلَى أحَدٍ». رواه مسلم.
قَالَ أهلُ اللغةِ: البغيُ: التَّعَدِّي والاستطالَةُ.
It is narrated from Sayyiduna Iyad bin Himar (may Allah be pleased with him); he said that the Messenger of Allah (peace and blessings be upon him) said: "Indeed, Allah Almighty has revealed to me that you should be humble, so that no one transgresses against another and no one boasts over another."
(Narrated by Muslim)
The scholars of language say: "al-baghy" means transgressing the limits and lording it over (others).
وعن أَبي هريرة - رضي الله عنه: أنَّ رسول الله - صلى الله عليه وسلم - قَالَ: «إِذَا قَالَ الرجُلُ: هَلَكَ النَّاسُ، فَهُوَ أَهْلَكُهُمْ». رواه مسلم.
والرواية المشهورة: «أهْلَكُهُمْ» بِرَفعِ الكاف وروي بنصبها: وذلكَ النْهيُ لِمنْ قَالَ ذَلِكَ عُجْبًا بِنَفْسِهِ، وتَصَاغُرًا للنَّاسِ، وارْتِفاعًا عَلَيْهِمْ، فَهَذَا هُوَ الحَرامُ، وَأمَّا مَنْ قَالَهُ لِما يَرَى في النَّاسِ مِنْ نَقْصٍ في أمرِ دِينِهم، وقَالَهُ تَحَزُّنًا عَلَيْهِمْ، وعَلَى الدِّينِ، فَلاَ بَأسَ بِهِ. هكَذَا فَسَّرَهُ العُلَماءُ وفَصَّلُوهُ، وَمِمَّنْ قَالَهُ مِنَ الأئِمَّةِ الأعْلامِ: مالِكُ بن أنس، وَالخَطَّابِيُّ، والحُميدِي وآخرونَ، وَقَدْ أوْضَحْتُهُ في كتاب: «الأذْكار».
It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When a man says: 'The people are ruined,' then he himself is the most ruined of them."
(Narrated by Muslim)
The well-known narration is "ahlakuhum" with a dammah on the kaf, and it has also been narrated with a fathah on it ("ahlakahum", meaning he is the one who ruined them). This prohibition is for the one who says it out of self-admiration, belittling people and lording it over them; this is what is forbidden. But as for the one who says it because of the deficiency he sees in people in the matter of their religion, saying it out of grief for them and for the religion, there is no harm in it. This is how the scholars have explained it and detailed it, and among the great Imams who said this are Malik bin Anas, al-Khattabi, al-Humaydi and others (scholars), and I have explained it in my book "al-Adhkar".