Sura Aal-i-Imraan

3:166

وَمَآ أَصَٰبَكُمْ يَوْمَ ٱلْتَقَى ٱلْجَمْعَانِ فَبِإِذْنِ ٱللَّهِ وَلِيَعْلَمَ ٱلْمُؤْمِنِينَ

Det som ni måste utstå den dag då de två härarna möttes, skedde enligt Guds vilja och för att det skulle stå klart vilka de sanna troende var,

Tafsir 3:166

The death, wounds and defeat you suffered on the day of Uḥud, when your army and the army of the idolaters met, was by the permission and decree of Allah, with far-reaching wisdom behind it: to make it clear who truly had faith.