Surah Al-Qasas

28:47

وَلَوْلَآ أَن تُصِيبَهُم مُّصِيبَةٌۢ بِمَا قَدَّمَتْ أَيْدِيهِمْ فَيَقُولُوا۟ رَبَّنَا لَوْلَآ أَرْسَلْتَ إِلَيْنَا رَسُولًۭا فَنَتَّبِعَ ءَايَٰتِكَ وَنَكُونَ مِنَ ٱلْمُؤْمِنِينَ

And if not that a disaster should strike them for what their hands put forth [of sins] and they would say, "Our Lord, why did You not send us a messenger so we could have followed Your verses and been among the believers?"...

Tafsir 28:47

And if a divine punishment were to afflict them due to the sins and disbelief they were upon, they would have argued: “why did you not send a messenger to us, so we could have followed your ayaat and acted upon them, and have been from the true believers who follow your commandments. If it was not for that we would have hastened the punishment. However, we delayed it so that we may be excused by sending a messenger to them.”