فَاِذَا لَقِيْتُمُ الَّذِيْنَ كَفَرُوْا فَضَرْبَ الرِّقَابِ۰ۭ حَتّٰۗي اِذَاۗ اَثْخَنْتُمُوْہُمْ فَشُدُّوا الْوَثَاقَ۰ۤۙ فَاِمَّا مَنًّۢا بَعْدُ وَاِمَّا فِدَاۗءً حَتّٰى تَضَعَ الْحَرْبُ اَوْزَارَہَا۰ۣۚۛذٰؔلِكَ۰ۭۛ وَلَوْ يَشَاۗءُ اللہُ لَانْتَصَرَ مِنْہُمْ وَلٰكِنْ لِّيَبْلُوَا۟ بَعْضَكُمْ بِبَعْـضٍ۰ۭ وَالَّذِيْنَ قُتِلُوْا فِيْ سَبِيْلِ اللہِ فَلَنْ يُّضِلَّ اَعْمَالَہُمْ۴
Faitha laqeetumu allatheena kafaroo fadarba alrriqabi hatta itha athkhantumoohum fashuddoo alwathaqa faimma mannan baAAdu waimma fidaan hatta tadaAAa alharbu awzaraha thalika walaw yashao Allahu laintasara minhum walakin liyabluwa baAAdakum bibaAAdin waallatheena qutiloo fee sabeeli Allahi falan yudilla aAAmalahum
So, when you clash with the unbelievers, smite their necks until you overpower them, then hold them in bondage. Then either free them graciously or after taking a ransom, until war shall have come to end. If God had pleased He could have punished them (Himself), but He wills to test some of you through some others. He will not allow the deeds of those who are killed in the cause of God to go waste.