إِن كُلٌّ إِلَّا كَذَّبَ ٱلرُّسُلَ فَحَقَّ عِقَابِ
Sura Saad
Tafsir 38:14
There is not a single one of these groups except that it denied the messengers. So Allah’s punishment was justified for them and His punishment befell them, even though it was delayed for a while.