Surah Al-Baqarah, ayah 193

2:193

وَقَٰتِلُوهُمۡ حَتَّىٰ لَا تَكُونَ فِتۡنَةٞ وَيَكُونَ ٱلدِّينُ لِلَّهِۖ فَإِنِ ٱنتَهَوۡاْ فَلَا عُدۡوَٰنَ إِلَّا عَلَى ٱلظَّٰلِمِينَ ١٩٣

Waqātilūhum hattā lā takūna fitnatun wayakūnad-dīnu lillāhi fa inintahaw falā 'udwāna illā 'alaz-zālimīn

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.