Concise Quran Commentary
For each oppressive town that became destroyed, Allah already knew of its fixed time. The destruction will neither come before or after its time.
وَمَآ أَهْلَكْنَا مِن قَرْيَةٍ إِلَّا وَلَهَا كِتَابٌ مَّعْلُومٌ
We never destroyed any town except that it had a destined time.