Aslam

Surah Al-Hijr — 15:4
وَمَآ أَهۡلَكۡنَا مِن قَرۡيَةٍ إِلَّا وَلَهَا كِتَابٞ مَّعۡلُومٞ
We have never destroyed a society without a destined term.

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.

Read Tafsir Ibn Kathir