3:166

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

Transliteration:

Wama asabakum yawma iltaqa aljamAAani fabi-ithni Allahi waliyaAAlama almu/mineena

Word by Word:

And what struck you (on the) day (when) met the two hosts (was) by (the) permission (of) Allah and that He (might) make evident the believers.

Translations:

and all that befell you on the day when the two hosts met in battle happened by God's leave, so that He might mark out the [true] believers,

What ye suffered on the day the two armies Met, was with the leave of God, in order that He might test the believers,-

That which befell you, on the day when the two armies met, was by permission of Allah; that He might know the true believers;

And that which befell you on the day when the two armies met was by Allah's permission, that He might know the believers,

And what struck you on the day the two armies met was by permission of Allah that He might make evident the [true] believers.