Surah Al Imran (آل عمران) · verse 166 (Medinan · Juz 4 · page 72)
وَمَآ أَصَٰبَكُمْ يَوْمَ ٱلْتَقَى ٱلْجَمْعَانِ فَبِإِذْنِ ٱللَّهِ وَلِيَعْلَمَ ٱلْمُؤْمِنِينَ ﴿166﴾
التفسير الميسر
وما وقع بكم مِن جراح أو قتل في غزوة "أُحد" يوم التقى جَمْعُ المؤمنين وجمع المشركين فكان النصر للمؤمنين أولا ثم للمشركين ثانيًا، فذلك كله بقضاء الله وقدره، وليظهر ما علمه الله في الأزل؛ ليميز المؤمنين الصادقين منكم
Sahih International
And what struck you on the day the two armies met was by permission of Allah that He might make evident the [true] believers
Marmaduke Pickthall
That which befell you, on the day when the two armies met, was by permission of Allah; that He might know the true believers
Abdullah Yusuf Ali
What ye suffered on the day the two armies Met, was with the leave of Allah, in order that He might test the believers