That is the principle of Islamic
Jihad:
(Quran 9:29):
“Fight those who believe not in Allah nor the Last Day, nor hold that forbidden which hath been forbidden by Allah and His Messenger, nor acknowledge the Religion of Truth, from among the People of the Book, until they pay the Jizya with willing submission, and feel themselves subdued”
(Quran 47:4):
“Therefore, when ye meet the Unbelievers (in fight), smite at their necks; at length, when ye have thoroughly subdued them, bind a bond firmly (on them): thereafter (is the time for) either generosity or ransom: until the war lays down its burdens. Thus (are ye commanded): but if it had been Allah’s Will, He could certainly have exacted retribution from them (Himself); but (He lets you fight) in order to test you, some with others. But those who are slain in the way of Allah, He will never let their deeds be lost.”
(Quran 9:5):
“But when the forbidden months are past, then fight and slay the Pagans wherever ye find them, and seize them, beleaguer them, and lie in wait for them in every stratagem (of war); but if they repent, and establish regular prayers and practise regular charity, then open the way for them: for Allah is Oft-Forgiving, Most Merciful.”