[Machine] The Messenger of Allah ﷺ said, "When Allah inflicts a punishment upon a people, the punishment reaches everyone who is among them, then Allah the Almighty resurrects them based on their deeds, as mentioned in the Book."
قَالَ رَسُولُ اللهِ ﷺ إِذَا أَنْزَلَ اللهُ بِقَوْمٍ عَذَابًا أَصَابَ الْعَذَابُ مَنْ كَانَ بَيْنَ أَظْهُرِهِمْ ثُمَّ يَبْعَثُهُمُ اللهُ تَعَالَى عَلَى أَعْمَالِهِمْ كَذَا فِي الْكِتَابِ