فَإِذَا لَقِيتُمُ ٱلَّذِينَ كَفَرُواْ فَضَرۡبَ ٱلرِّقَابِ حَتَّىٰٓ إِذَآ أَثۡخَنتُمُوهُمۡ فَشُدُّواْ ٱلۡوَثَاقَ فَإِمَّا مَنَّۢا بَعۡدُ وَإِمَّا فِدَآءً حَتَّىٰ تَضَعَ ٱلۡحَرۡبُ أَوۡزَارَهَاۚ ذَٰلِكَ وَلَوۡ يَشَآءُ ٱللَّهُ لَٱنتَصَرَ مِنۡهُمۡ وَلَٰكِن لِّيَبۡلُوَاْ بَعۡضَكُم بِبَعۡضٖۗ وَٱلَّذِينَ قُتِلُواْ فِي سَبِيلِ ٱللَّهِ فَلَن يُضِلَّ أَعۡمَٰلَهُمۡ ٤
Therefore, when you meet the Rejecters [in war], smite at their necks until you have inflicted much wounds upon them,bind [the captives] firmly: thereafter [is the time for] setting them free either by generosity or against ransom: until the war comes to an end. Thus [are you commanded]: but if it had been Allāh’s Will, He could certainly have [Himself] exacted retribution from them; but [He lets you fight] in order to test some of you with others. And those who are slain in the Path of Allāh, He will never let their deeds be forfeited.