Al-Baqarah 2:193
وَقَـٰتِلُوهُمْ حَتَّىٰ لَا تَكُونَ فِتْنَةٌ وَيَكُونَ ٱلدِّينُ لِلَّهِ ۖ فَإِنِ ٱنتَهَوْا۟ فَلَا عُدْوَٰنَ إِلَّا عَلَى ٱلظَّـٰلِمِينَ
Waqatiloohum hatta latakoona fitnatun wayakoona addeenu lillahi fa-iniintahaw fala AAudwana illa AAala aththalimeen
Fight them until there is no [more] fitnah and [until] religion [i.e., worship] is [acknowledged to be] for Allāh. But if they cease, then there is to be no aggression [i.e., assault] except against the oppressors.
Fight them until there is no Fitnah any more, and obedience remains for Allah. But, if they desist, then aggression is not allowed except against the transgressors.