Maliks Muwatta Book 056, Hadith Number 022.

Section : Punishing the Many for the Actions of the Few.

Malik related to me that he had heard that Umm Salama, the wife of the Prophet, may Allah bless him and grant him peace, said, "Messenger of Allah! Shall we be destroyed while there are people who are salih among us?" The Messenger of Allah, may Allah bless him and grant him peace, said, "Yes, if there is much wickedness."