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:15:13

They will not believe in it, while there has already occurred the precedent of the former peoples.  

They do not believe in him, in the Prophet (s), even though the example of the men of old has already gone before, that is, the way of God ˹in dealing˺ with them ˹those of old˺, by chastising them for denying ˹the truthfulness of˺ their prophets: those ˹Meccans˺ are like these former.
القرآن:١٥:١٣

لَا يُؤْمِنُونَ بِهِ ۖ وَقَدْ خَلَتْ سُنَّةُ الْأَوَّلِينَ  

{لا يؤمنون به} بالنبي ﷺ {وقد خلت سنة الأولين} أي سنة الله فيهم من تعذيبهم بتكذيبهم أنبياءهم وهؤلاء مثلهم.