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:3:141

And that Allah may purify the believers ˹through trials˺ and destroy the disbelievers.  

And that God may prove the believers, purifying them of sins through what befalls them, and efface, that is, destroy, the disbelievers.
القرآن:٣:١٤١

وَلِيُمَحِّصَ اللَّهُ الَّذِينَ آمَنُوا وَيَمْحَقَ الْكَافِرِينَ  

{وليمحِّص الله الذين آمنوا} يطهرهم من الذنوب بما يصيبهم {ويمحق} يهلك {الكافرين}.