Chapter 8, Verse 17, Spoils of war, booty
سورة الأنفال
فَلَمۡ تَقۡتُلُوهُمۡ وَلَٰكِنَّ ٱللَّهَ قَتَلَهُمۡۚ وَمَا رَمَيۡتَ إِذۡ رَمَيۡتَ وَلَٰكِنَّ ٱللَّهَ رَمَىٰ وَلِيُبۡلِيَ ٱلۡمُؤۡمِنِينَ مِنۡهُ بَلَآءً حَسَنًاۚ إِنَّ ٱللَّهَ سَمِيعٌ عَلِيمٞ
falam taqtuloohum walakinna allaha qatalahum wama ramayta ith ramayta walakinna allaha rama waliyubliya almumineena minhu balaan hasanan inna allaha sameeaaun aaaleemun
You killed them not, but allah killed them. And you (Muhammad ﷺ) threw not when you did throw but allah threw, that He might test the believers by a fair trial from Him. Verily, allah is All-Hearer, All-Knower.
Chapter 29, Verse 11, The Spider
سورة العنكبوت
وَلَيَعۡلَمَنَّ ٱللَّهُ ٱلَّذِينَ ءَامَنُواْ وَلَيَعۡلَمَنَّ ٱلۡمُنَٰفِقِينَ
walayaaalamanna allahu allatheena amanoo walayaaalamanna almunafiqeena
Verily, allah knows those who believe, and verily, He knows the hypocrites [i.e. allah will test the people with good and hard days to discriminate the good from the wicked (although allah knows all that before putting them to test)].
Chapter 47, Verse 31, Muhammad
سورة محمد
وَلَنَبۡلُوَنَّكُمۡ حَتَّىٰ نَعۡلَمَ ٱلۡمُجَٰهِدِينَ مِنكُمۡ وَٱلصَّٰبِرِينَ وَنَبۡلُوَاْ أَخۡبَارَكُمۡ
And surely, We shall try you till We test those who strive hard (for the Cause of allah) and the patient ones, and We shall test your facts (i.e. the one who is a liar, and the one who is truthful).
Chapter 3, Verse 141, The family of Imran
سورة آل عمران
وَلِيُمَحِّصَ ٱللَّهُ ٱلَّذِينَ ءَامَنُواْ وَيَمۡحَقَ ٱلۡكَٰفِرِينَ
waliyumahhisa allahu allatheena amanoo wayamhaqa alkafireena
And that allah may test (or purify) the believers (from sins) and destroy the disbelievers.
Chapter 3, Verse 166, The family of Imran
سورة آل عمران
وَمَآ أَصَٰبَكُمۡ يَوۡمَ ٱلۡتَقَى ٱلۡجَمۡعَانِ فَبِإِذۡنِ ٱللَّهِ وَلِيَعۡلَمَ ٱلۡمُؤۡمِنِينَ
wama asabakum yawma iltaqa aljamaaani fabiithni allahi waliyaaalama almumineena
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 allah, in order that He might test the believers.