Surah Ali 'Imran, Ayah 166 (3:166)
وَمَآ أَصَٰبَكُمۡ يَوۡمَ ٱلۡتَقَى ٱلۡجَمۡعَانِ فَبِإِذۡنِ ٱللَّهِ وَلِيَعۡلَمَ ٱلۡمُؤۡمِنِينَ ١٦٦
Arabic: King Fahd Complex Hafs text.
English translation
166. And what you suffered (of the disaster) on the day (of the battle of Uhud when) the two armies met, was by the leave of Allâh, in order that He might test the believers.
Hilali and Khan (QuranEnc.com)