Umar bin Abdul-Aziz reported,

It used to be said that Allah تبارك وتعالى does not punish the general body of people for the sin of a few, but when wrongdoing is committed openly, they all become deserving of punishment.

Malik 1926

Sahih

و حدثني مالك عن إسمعيل بن أبي حكيم أنه

سمع عمر بن عبد العزيز يقول

كان يقال إن الله تبارك وتعالى لا يعذب العامة بذنب الخاصة ولكن إذا عمل المنكر جهارا استحقوا العقوبة كلهم

مالك 1926صحيح
Contents
Reference
Commentary
Ayat
Collection
Muwatta Malik
Book
Speech
Numbering
Laithi 1926
Malik 1926