Sura Al-Baqara

2:193

وَقَٰتِلُوهُمْ حَتَّىٰ لَا تَكُونَ فِتْنَةٌۭ وَيَكُونَ ٱلدِّينُ لِلَّهِ ۖ فَإِنِ ٱنتَهَوْا۟ فَلَا عُدْوَٰنَ إِلَّا عَلَى ٱلظَّٰلِمِينَ

Och kämpa mot dem till dess allt förtryck upphör och all dyrkan kan ägnas Gud. Om de då slutar [strida] skall alla fientligheter upphöra utom [mot] de orättfärdiga [som vill kämpa vidare].

Tafsir 2:193

Fight the disbelievers until they do not prevent people from Allah’s path and there is no disbelief, and until the dominant way of life is the path of Allah. But if they stop their disbelief and stop preventing others from the path of Allah, then stop fighting them. There is to be no aggression except against those who oppress, through disbelief and by preventing people from the path of Allah.