Surah Al-Anfal (الأنفال) · verse 39 (Medinan · Juz 9 · page 181)
وَقَٰتِلُوهُمْ حَتَّىٰ لَا تَكُونَ فِتْنَةٌ وَيَكُونَ ٱلدِّينُ كُلُّهُۥ لِلَّهِ فَإِنِ ٱنتَهَوْا۟ فَإِنَّ ٱللَّهَ بِمَا يَعْمَلُونَ بَصِيرٌ ﴿39﴾
التفسير الميسر
وقاتلوا -أيها المؤمنون- المشركين حتى لا يكون شِرْكٌ وصدٌّ عن سبيل الله؛ ولا يُعْبَدَ إلا الله وحده لا شريك له، فيرتفع البلاء عن عباد الله في الأرض، وحتى يكون الدين والطاعة والعبادة كلها لله خالصة دون غيره، فإن انزجروا عن فتنة المؤمنين وعن الشرك بالله وصاروا إلى الدين الحق معكم، فإن الله لا يخفى عليه ما يعملون مِن ترك الكفر والدخول في الإسلام
Sahih International
And fight them until there is no fitnah and [until] the religion, all of it, is for Allah. And if they cease - then indeed, Allah is Seeing of what they do
Marmaduke Pickthall
And fight them until persecution is no more, and religion is all for Allah. But if they cease, then lo! Allah is Seer of what they do
Abdullah Yusuf Ali
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