Surah Al-Anfal 8:39
وَقَـٰتِلُوهُمْ حَتَّىٰ لَا تَكُونَ فِتْنَةٌ وَيَكُونَ ٱلدِّينُ كُلُّهُۥ لِلَّهِ ۚ فَإِنِ ٱنتَهَوْا۟ فَإِنَّ ٱللَّهَ بِمَا يَعْمَلُونَ بَصِيرٌ
And fight against them until there is no fitnah and [until] the religion [i.e., worship], all of it, is for Allāh. And if they cease - then indeed, Allāh is Seeing of what they do.
Translation: Saheeh International
Tafsir
And fight them until sedition idolatry is exists no more and religion is all for God alone none other being worshipped; then if they desist from unbelief surely God sees what they do and will requite them for it.
Excerpt from Tafsir al-Jalalayn, commentary on 8:39, via Quran.com. The reader has the full commentary and 9 more tafsirs.