Surah Al-Hijr

15:4

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

Dan tiadalah Kami binasakan (penduduk) sesebuah negeri melainkan ada baginya tempoh yang tertentu dan termaklum.

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.