وَمَا مَنَعَ النَّاسَ اَنْ يُّؤْمِنُوْٓا اِذْ جَاۤءَهُمُ الْهُدٰى وَيَسْتَغْفِرُوْا رَبَّهُمْ اِلَّآ اَنْ تَأْتِيَهُمْ سُنَّةُ الْاَوَّلِيْنَ اَوْ يَأْتِيَهُمُ الْعَذَابُ قُبُلًا ( الكهف: ٥٥ )
Wa maa mana'an naasa any yu'minooo iz jaaa'ahumul hudaa wa yastaghfiroo Rabbahum illaaa an taatiyahum sunnatul awwaleena aw yaatiyahumul 'azaabu qubulaa (al-Kahf 18:55)
Sahih International:
And nothing has prevented the people from believing when guidance came to them and from asking forgiveness of their Lord except that there [must] befall them the [accustomed] precedent of the former peoples or that the punishment should come [directly] before them. (Al-Kahf [18] : 55)
1 Mufti Taqi Usmani
The only thing that prevented people from believing, even after the guidance had come to them, and from seeking forgiveness from their Lord, is (their demand) that what used to come to the earlier people should come to them as well, or that the punishment should visit them face to face.