Adi’ al-Kindi reported: The Messenger of Allah, peace and blessings be upon him, said, “Verily, Allah Almighty will not punish a community for the sins of a few unless they see evil appear among themselves and, while they are able to reject it, they do not. If they do not, then Allah will punish the sinners and the entire community.”
Source: Musnad Ahmad 17720
Grade: Hasan (fair) according to Ibn Hajar
عَنْ عَدِيٍّ الْكِنْدِيِّ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِنَّ اللَّهَ عَزَّ وَجَلَّ لَا يُعَذِّبُ الْعَامَّةَ بِعَمَلِ الْخَاصَّةِ حَتَّى يَرَوْا الْمُنْكَرَ بَيْنَ ظَهْرَانَيْهِمْ وَهُمْ قَادِرُونَ عَلَى أَنْ يُنْكِرُوهُ فَلَا يُنْكِرُوهُ فَإِذَا فَعَلُوا ذَلِكَ عَذَّبَ اللَّهُ الْخَاصَّةَ وَالْعَامَّةَ
17720 مسند أحمد بن حنبل
13/6 المحدث ابن حجر العسقلاني خلاصة حكم المحدث إسناده حسن وله شاهد في فتح الباري لابن حجر