৫১. আমি তোমাদের সমমনা লোকদেরকে ধ্বংস করেছি,
অতএব,
কোন চিন্তাশীল আছে কি?
৫২. তারা যা কিছু করেছে,
সবই আমলনামায় লিপিবদ্ধ আছে।
Ayat 51. And indeed, We have destroyed your likes, then is there any that will remember (or receive admonition)?
Ayat 52. And each and everything they have done is noted in (their) Records (of deeds).
Tafseer of Surah Al-Qamar (The Moon) Ayat 51 & 52. And (oft) in the past, have We destroyed gangs like unto you: then is there any that will receive admonition? Ashya 'akum: 'gangs or parties or collection of men like you'—addressed to wicked men who arrogantly rely upon their own strength or combination, neither of which can stand for a moment against the Will of Allah. 5166 The cases of Pharaoh's men of old and the Pagan Quraysh are considered as parallel, and an appeal is addressed to the latter from the experience of the former: 'will ye not learn and repent?' 52. All that they do is noted in (their) Books (of Deeds) The point is that nothing which men do is lost—good or evil. Everything gives rise to an inevitable chain of consequences, from which a release is only obtained by the intervention of Allah's Grace acting on an act, a striving of the human will to repent and turn to Allah.
Hazrat Ibn Umar (May Allah be pleased with them) said: The Messenger of Allah [SAWW](PBUH)
said, "If Allah afflicts punishment upon a nation, it befalls the whole
population indiscriminately and then they will be resurrected and
judged according to their deeds.'' [Al-Bukhari Book 09, Chapter 88, Hadith # 224]
Lesson: as mentioned above in Surah Al-Qamar Ayat 51. And indeed, We have destroyed your likes, then is there any that will remember (or receive admonition)?" When Allah's punishment comes to pass, it does not distinguish between the upright and the wicked. However, the pious people will be saved from punishment after their death while the wicked ones will be punished in the Hell. May Allah save us from all types of punishments.