Muwatta Malik #1960
Speech
The Arabic includes the chain of narration (sanad) and the collector's commentary; the English translation shows the Prophet's words only.
وَحَدَّثَنِي مَالِكٌ، عَنْ إِسْمَاعِيلَ بْنِ أَبِي حَكِيمٍ، أَنَّهُ سَمِعَ عُمَرَ بْنَ عَبْدِ الْعَزِيزِ، يَقُولُ كَانَ يُقَالُ إِنَّ اللَّهَ تَبَارَكَ وَتَعَالَى لاَ يُعَذِّبُ الْعَامَّةَ بِذَنْبِ الْخَاصَّةِ وَلَكِنْ إِذَا عُمِلَ الْمُنْكَرُ جِهَارًا اسْتَحَقُّوا الْعُقُوبَةَ كُلُّهُمْ .
Malik related to me that Ismail ibn Abi Hakim heard Umar ibn Abd
al-Aziz say, "Some say that Allah the Blessed, the Exalted, will not
punish the many for the wrong action of the few. However, when the
objectionable action is committed openly, then they all deserve to be
punished."
Topics
About Muwatta Malik
This hadith is #1960 from Muwatta Malik, in the Book of Speech.