Sure Al-Anfaal

8:17

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

Nicht ihr habt sie getötet, sondern Allah hat sie getötet. Und nicht du hast geworfen, als du geworfen hast, sondern Allah hat geworfen, und damit Er die Gläubigen einer schönen Prüfung von Ihm unterziehe. Gewiß, Allah ist Allhörend und Allwissend.

Tafsir 8:17

For you did not O believers, kill the idolaters on the day of Badr because of your power and might, but rather Allah supported you in that. And you O Prophet did not throw sand at the idolaters, rather it was Allah, Who made what you throw reach them. Allah tested the believers by blessing them with victory over their enemies, despite their small numbers of fighters and weapons, so that they might be thankful to Him. Indeed Allah listens to your prayers and what you say, and He knows what you do, and what is best for you.