Surah Al-Baqarah 2:193
وَقَـٰتِلُوهُمْ حَتَّىٰ لَا تَكُونَ فِتْنَةٌ وَيَكُونَ ٱلدِّينُ لِلَّهِ ۖ فَإِنِ ٱنتَهَوْا۟ فَلَا عُدْوَٰنَ إِلَّا عَلَى ٱلظَّـٰلِمِينَ
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.
Translation: Saheeh International
Tafsir
Fight them till there is no sedition no idolatry and the religion all worship is for God alone and none are worshipped apart from Him; then if they desist from idolatry do not aggress against them. …
Excerpt from Tafsir al-Jalalayn, commentary on 2:193, via Quran.com. The reader has the full commentary and 9 more tafsirs.