وَإِن مِّن قَرْيَةٍ إِلَّا نَحْنُ مُهْلِكُوهَا قَبْلَ يَوْمِ ٱلْقِيَٰمَةِ أَوْ مُعَذِّبُوهَا عَذَابًۭا شَدِيدًۭا ۚ كَانَ ذَٰلِكَ فِى ٱلْكِتَٰبِ مَسْطُورًۭا
Tak ada suatu negeripun (yang durhaka penduduknya), melainkan Kami membinasakannya sebelum hari kiamat atau Kami azab (penduduknya) dengan azab yang sangat keras. Yang demikian itu telah tertulis di dalam kitab (Lauh Mahfuzh).
Tafsir Ibn Kathir
The Destruction or Torment of all Disbelieving Towns before the Hour begins
Here Allah tells us that He has decreed and it is written in Al-Lawh Al-Mahfuz (The Preserved Tablet) which is with Him, that there is no town that He will not destroy by wiping out all its people or by punishing them,
(with a severe torment.) either by killing them or sending calamities upon them as He wills. This will be because of their sins, as Allah says of the past nations:
(We wronged them not, but they wronged themselves.) 11:101
(So it tasted the evil result of its affair (disbelief), and the consequence of its affair (disbelief) was loss.) 65:9
(And many a town (population) revolted against the command of its Lord and His Messengers;) 65:8 and many Ayat.