Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:10:13

And We had already destroyed generations before you when they wronged, and their messengers had come to them with clear proofs, but they were not to believe. Thus do We recompense the criminal people  

And indeed We have destroyed generations, communities, before you, O people of Mecca, when they did evil, by way of idolatry, and, indeed, their messengers brought them clear proofs, indicating their truthfulness; but they would not believe (wa-mā kānū li-yu’minū: this is a supplement to zalamū, ‘they did evil’). So, just as We destroyed those, We shall requite the sinning, the unbelieving, folk.
القرآن:١٠:١٣

وَلَقَدْ أَهْلَكْنَا الْقُرُونَ مِنْ قَبْلِكُمْ لَمَّا ظَلَمُوا ۙ وَجَاءَتْهُمْ رُسُلُهُمْ بِالْبَيِّنَاتِ وَمَا كَانُوا لِيُؤْمِنُوا ۚ كَذَٰلِكَ نَجْزِي الْقَوْمَ الْمُجْرِمِينَ  

{ولقد أهلكنا القرون} الأمم {من قبلكم} يا أهل مكة {لما ظلموا} بالشرك {و} قد {جاءتهم رسلهم بالبينات} الدالات على صدقهم {وما كانوا ليؤمنوا} عطف على ظلموا {كذلك} كما أهلكنا أولئك {نجزي القوم المجرمين} الكافرين.