Translation of the verse 39 from Surah Al-Anfal : Number of verses 75 - - page 181 - Part 9.
And fight them until there is no more Fitnah (disbelief and polytheism: i.e. worshipping others besides Allah) and the religion (worship) will all be for Allah Alone [in the whole of the world]. But if they cease (worshipping others besides Allah), then certainly, Allah is All-Seer of what they do.
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.
(8:39) And fight against them until the mischief ends and the way prescribed by Allah - the whole of it -prevail *31 Then, if they give up mischief, surely Allah sees what they do.
*31). This is a reiteration of the purpose, mentioned earlier in al-Baqarah 2: 193, for which Muslims are required to wage war. The purpose is two-fold. Negatively speaking, the purpose is to eradicate 'mischief'. The positive purpose consists of establishing a state of affairs wherein all obedience is rendered to God alone. This alone is the purpose for which the believers may, rather should, fight. Fighting for any other purpose is not lawful. Nor does it behove men of faith to take part in wars for worldly purposes. (For further explanation see Towards Understanding the Qur'an, vol. 1, al-Baqarah 2, nn.. 204 and 205, pp. 152-3 - Ed.)