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:29:39

And ˹We destroyed˺ Qarun and Pharaoh and Haman. And Moses had already come to them with clear evidences, and they were arrogant in the land, but they were not outrunners ˹of Our punishment˺.  

And, We destroyed, Korah, and Pharaoh, and Hāmān! And verily Moses brought them, beforehand, clear signs, manifest proofs, but they acted arrogantly in the land; and they could not thwart Us, they could not elude Our chastisement.
القرآن:٢٩:٣٩

وَقَارُونَ وَفِرْعَوْنَ وَهَامَانَ ۖ وَلَقَدْ جَاءَهُمْ مُوسَىٰ بِالْبَيِّنَاتِ فَاسْتَكْبَرُوا فِي الْأَرْضِ وَمَا كَانُوا سَابِقِينَ  

{و} أهلكنا {قارون وفرعون وهامان ولقد جاءهم} من قبل {موسى بالبيّنات} الحجج الظاهرات {فاستكبروا في الأرض وما كانوا سابقين} فائتين عذابنا.