«إذا أراد الله بقوم عذابا أصاب العذاب من كان فيهم ثم بعثوا على أعمالهم»
The Prophet (peace and blessings be upon him) said:
"When Allah Almighty intends punishment for a people, the punishment engulfs everyone who is among them; then (on the Day of Resurrection) they will be raised according to their own deeds."
Hadith Referenceصحیح الجامع الصغیر / حرف الألف / 309