8:17

فَلَمْ تَقْتُلُوهُمْ وَلَٰكِنَّ اللَّهَ قَتَلَهُمْ وَمَا رَمَيْتَ إِذْ رَمَيْتَ وَلَٰكِنَّ اللَّهَ رَمَىٰ وَلِيُبْلِيَ الْمُؤْمِنِينَ مِنْهُ بَلَاءً حَسَنًا إِنَّ اللَّهَ سَمِيعٌ عَلِيمٌ

Transliteration:

Falam taqtuloohum walakinna Allaha qatalahum wama ramayta ith ramayta walakinna Allaha rama waliyubliya almu/mineena minhu balaan hasanan inna Allaha sameeAAun AAaleemun

Word by Word:

And not you kill them, but Allah killed them. And not you threw when you threw, but Allah threw and that He may test the believers from Him (with) a trial good. Indeed, Allah (is) All-Hearing, All-Knowing.

Translations:

And yet, [O believers,] it was not you who slew the enemy, but it was God who slew them; and it was not thou who cast [terror into them, O Prophet], when thou didst cast it, but it was God who cast it: and [He did all this] in order that He might test the believers by a goodly test of His Own or daining. Verily, God is all-hearing, all-knowing!

It is not ye who slew them; it was God: when thou threwest (a handful of dust), it was not thy act, but God's: in order that He might test the Believers by a gracious trial from Himself: for God is He Who heareth and knoweth (all things).

Ye (Muslims) slew them not, but Allah slew them. And thou (Muhammad) threwest not when thou didst throw, but Allah threw, that He might test the believers by a fair test from Him. Lo! Allah is Hearer, Knower.

So you slew them not but Allah slew them, and thou smotest not when thou didst smite (the enemy), but Allah smote (him), and that He might confer upon the believers a benefit from Himself. Surely Allah is Hearing, Knowing.

And you did not kill them, but it was Allah who killed them. And you threw not, [O Muhammad], when you threw, but it was Allah who threw that He might test the believers with a good test. Indeed, Allah is Hearing and Knowing.