Surah Al Imran (آل عمران) · verse 141 (Medinan · Juz 4 · page 68)
وَلِيُمَحِّصَ ٱللَّهُ ٱلَّذِينَ ءَامَنُوا۟ وَيَمْحَقَ ٱلْكَٰفِرِينَ ﴿141﴾
التفسير الميسر
وهذه الهزيمة التي وقعت في "أُحد" كانت اختبارًا وتصفية للمؤمنين، وتخليصًا لهم من المنافقين وهلاكًا للكافرين
Sahih International
And that Allah may purify the believers [through trials] and destroy the disbelievers
Marmaduke Pickthall
And that Allah may prove those who believe, and may blight the disbelievers
Abdullah Yusuf Ali
Allah's object also is to purge those that are true in Faith and to deprive of blessing Those that resist Faith