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:21:9

Then We fulfilled for them the promise, and We saved them and whom We willed and destroyed the transgressors.  

Then We fulfilled to them the promise, to deliver them. So We delivered them and whomever We would, ˹of˺ those who believed in them, and We destroyed the prodigal, those who denied them.
القرآن:٢١:٩

ثُمَّ صَدَقْنَاهُمُ الْوَعْدَ فَأَنْجَيْنَاهُمْ وَمَنْ نَشَاءُ وَأَهْلَكْنَا الْمُسْرِفِينَ  

{ثم صدقناهم الوعد} بإنجائهم {فأنجيناهم ومن نشاء} المصدقين لهم {وأهلكنا المسرفين} المكذبين لهم.