Hushaym narrates from Isma'il, with some addition, that: I heard the Messenger of Allah (peace and blessings be upon him): "Any people among whom sin is widespread, and they have the power to stop it but do not stop it, it may well be that Allah Almighty will afflict them all with punishment."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب آداب القاضي / 20191