Sura Al-Hijr

15:4

وَمَآ أَهْلَكْنَا مِن قَرْيَةٍ إِلَّا وَلَهَا كِتَابٌۭ مَّعْلُومٌۭ

Vi har aldrig låtit ett folk förgås utan att först utsätta en frist för dem.

Tafsir 15:4

For each oppressive town that became destroyed, Allah already knew of its fixed time. The destruction will neither come before or after its time.