وَقَـٰتِلُوهُمْ حَتَّىٰ لَا تَكُونَ فِتْنَةٌ وَيَكُونَ ٱلدِّينُ كُلُّهُۥ لِلَّهِ ۚ فَإِنِ ٱنتَهَوْا۟ فَإِنَّ ٱللَّهَ بِمَا يَعْمَلُونَ بَصِيرٌ
And fight against them until there is no fitnah1 and [until] the religion [i.e., worship], all of it, is for Allāh.2 And if they cease - then indeed, Allāh is Seeing of what they do.
Dimensional Analysis
Context
Say to the Unbelievers, if (now) they desist (from Unbelief), their past would be forgiven them; but if they persist, the punishment of those before them is already (a matter of warning for them).
And fight them on until there is no more tumult or oppression, and there prevail justice and faith in Allah altogether and everywhere; but if they cease, verily Allah doth see all that they do.
If they refuse, be sure that Allah is your Protector - the best to protect and the best to help.
Related Verses
واللهُ أعلمُ بالصَّواب