Surah Al-Anfal 8:17
فَلَمْ تَقْتُلُوهُمْ وَلَـٰكِنَّ ٱللَّهَ قَتَلَهُمْ ۚ وَمَا رَمَيْتَ إِذْ رَمَيْتَ وَلَـٰكِنَّ ٱللَّهَ رَمَىٰ ۚ وَلِيُبْلِىَ ٱلْمُؤْمِنِينَ مِنْهُ بَلَآءً حَسَنًا ۚ إِنَّ ٱللَّهَ سَمِيعٌ عَلِيمٌ
And you did not kill them, but it was Allāh who killed them. And you threw not, [O Muḥammad], when you threw, but it was Allāh who threw that He might test the believers with a good test. Indeed, Allāh is Hearing and Knowing.
Translation: Saheeh International
Tafsir
You did not slay them at Badr by your own might but God slew them by giving you assistance and you threw not O Muhammad (s) against the eyes of the unbelieving folk when you threw the pebbles for a handful of pebbles thrown by a human being cannot strike the eyes of every person in a large troop but God threw by …
Excerpt from Tafsir al-Jalalayn, commentary on 8:17, via Quran.com. The reader has the full commentary and 9 more tafsirs.