It is narrated from Isma'il bin Abi Hakim that the rightly guided caliph Umar bin Abd al-Aziz (may Allah have mercy on him) said: "Indeed, Allah, the Blessed and Exalted, does not punish the general public for the (evil) deeds of a few particular individuals; but when sins and acts of disobedience begin to be done openly and are not condemned (that is, they are not stopped), then all people, common and elite, come within the grip and punishment of Allah."
Imam al-Humaydi narrated this athar in his Musnad (3317), and its narrators are thiqat (trustworthy).
Hadith Referenceالمطالب العالية بزوائد المسانيد الثمانية / كتاب الزهد والرقائق / 3300
Hadith Gradingمحدثین:إسناده صحيح
Hadith Takhrij«حکم الحدیث المطالب العالیہ محققاً تنسیق د. سعد بن ناصر بن عبد العزيز الشَّثري- مکتبہ شاملہ :هذا إسناد صحيح، رجاله كلهم ثقات. » «أخرجه موطأ مالك برقم: 3636، وأخرجه مسند الحميدي برقم: 271، وأخرجه مصنف ابن أبي شيبة برقم: 36245»