Surah Al-Anfal, Ayah 17 (8:17)
فَلَمۡ تَقۡتُلُوهُمۡ وَلَٰكِنَّ ٱللَّهَ قَتَلَهُمۡۚ وَمَا رَمَيۡتَ إِذۡ رَمَيۡتَ وَلَٰكِنَّ ٱللَّهَ رَمَىٰ وَلِيُبۡلِيَ ٱلۡمُؤۡمِنِينَ مِنۡهُ بَلَآءً حَسَنًاۚ إِنَّ ٱللَّهَ سَمِيعٌ عَلِيمٞ ١٧
Arabic: King Fahd Complex Hafs text.
English translation
17. You killed them not, but Allâh killed them. And you (Muhammad صلى الله عليه وسلم) threw not when you did throw, but Allâh threw, that He might test the believers by a fair trial from Him. Verily, Allâh is All-Hearer, All-Knower.
Hilali and Khan (QuranEnc.com)