Sahih Muslim, Book 53, Hadith 103 (Muslim 7146)

Abdullah b. Umar reported:

I heard Allah's Messenger (ﷺ) as saying: When Allah intends to chastise a people, He chastises all of them then they would be raised according to their deeds.