Ibn Umar, may Allah be pleased with him, narrates that the Messenger of Allah, peace and blessings be upon him, said: "When Allah sends punishment upon a people, then all the people are encompassed by that punishment. Then, on the Day of Resurrection, they will be raised according to their deeds." Agreed upon.
Hadith Referenceمشكوة المصابيح / كتاب الرقاق / 5344
Hadith Gradingالألبانی:مُتَّفَقٌ عَلَيْهِ | زبیر علی زئی:متفق عليه
Hadith Takhrij´تحقيق و تخريج: محدث العصر حافظ زبير على زئي رحمه الله` «متفق عليه، رواه البخاري (7108) و مسلم (84 / 2879)»