Malik related to me that Ismail ibn Abi Hakim heard Umar ibn Abdal-Aziz say, "Some say that Allah the Blessed, the Exalted, will notpunish the many for the wrong action of the few. However, when theobjectionable action is committed openly, then they all deserve to bepunished."
USC-MSA web (English) reference: Book 56, Hadith 23
Arabic reference: Book 56, Hadith 1836