"مَا أَهْلَكَ اللهُ ﷻ قَوْمًا وَلا قَرْنًا وَلا أُمَّةً وَلا أَهْلَ قَرْيَةٍ بِعَذَابٍ مِنَ السَّمَاءِ مُنْذُ أَنْزَلَ التَّوْرَاةَ عَلَى وَجْهِ الأرْض غَيرَ الْقَرْيَةِ الَّتي مُسخَتْ قِرَدَةً، أَلمْ تَرَ إِلَى قَوْله تَعَالى: {وَلَقَدْ آتَينَا مُوسَى الْكِتَابَ مِنْ بَعْدِ مَا أَهْلَكْنَا الْقُرُونَ الْأُولَى}.
[Machine] "From the Messenger of Allah ﷺ , he said, 'Allah has never destroyed a people, a generation, a nation, or the people of a village since He revealed the Torah on the face of the earth with a punishment from the sky, except for the people of the village that were transformed into monkeys. Have you not seen His saying, {And We had certainly given Moses the Scripture after We had destroyed the former generations as enlightenment for the people and guidance and mercy that they might be reminded} [Qasas: 43].' This hadith is authentic according to the conditions of the two sheikhs (Bukhari and Muslim) and they did not include it in their compilations."
عَنْ رَسُولِ اللَّهِ ﷺ قَالَ مَا أَهْلَكَ اللَّهُ قَوْمًا وَلَا قَرْنًا وَلَا أُمَّةً وَلَا أَهْلَ قَرْيَةٍ مُنْذُ أَنْزَلَ التَّوْرَاةَ عَلَى وَجْهِ الْأَرْضِ بِعَذَابٍ مِنَ السَّمَاءِ غَيْرَ أَهْلِ الْقَرْيَةِ الَّتِي مُسِخَتْ قِرَدَةً أَلَمْ تَرَ إِلَى قَوْلِهِ تَعَالَى {وَلَقَدْ آتَيْنَا مُوسَى الْكِتَابَ مِنْ بَعْدِ مَا أَهْلَكْنَا الْقُرُونَ الْأُولَى بَصَائِرَ لِلنَّاسِ وَهَدًى وَرَحْمَةً لَعَلَّهُمْ يَتَذَكَّرُونَ} [القصص 43] «صَحِيحٌ عَلَى شَرْطِ الشَّيْخَيْنِ وَلَمْ يُخْرِجَاهُ» على شرط البخاري ومسلم