And fight them until there is no more Fitnah (disbelief and polytheism, i.e., worshipping others besides Allah) and the religion (worship) will be all for Allah (Alone) (in the whole of the world)... (V.8:39)

Hadith Number 4650

setting

Narrated Ibn `Umar

That a man came to him (while two groups of Muslims were fighting) and said, "O Abu `Abdur Rahman! Don't you hear what Allah has mentioned in His Book: 'And if two groups of believers fight against each other...' (49.9) So what prevents you from fighting as Allah has mentioned in His Book?"' Ibn `Umar said, "O son of my brother! I would rather be blamed for not fighting because of this Verse than to be blamed because of another Verse where Allah says: 'And whoever kills a believer intentionally..." (4.93) Then that man said, "Allah says:-- 'And fight them until there is no more afflictions (worshipping other besides Allah) and the religion (i.e. worship) will be all for Allah (Alone)" (8.39) Ibn `Umar said, "We did this during the lifetime of Allah's Messenger (ﷺ) when the number of Muslims was small, and a man was put to trial because of his religion, the pagans would either kill or chain him; but when the Muslims increased (and Islam spread), there was no persecution." When that man saw that Ibn `Umar did not agree to his proposal, he said, "What is your opinion regarding `Ali and `Uthman?" Ibn `Umar said, "What is my opinion regarding `Ali and `Uthman? As for `Uthman, Allah forgave him and you disliked to forgive him, and `Ali is the cousin and son-in-law of Allah's Messenger (ﷺ)." Then he pointed out with his hand and said, "And that is his daughter's (house) which you can see."

Hadith Number 4651

setting

Narrated Sa`id bin Jubair

Ibn `Umar came to us and a man said (to him), "What do you think about 'Qit-alal-Fitnah' (fighting caused by afflictions)." Ibn `Umar said (to him), "And do you understand what an affliction is? Muhammad used to fight against the pagans, and his fighting with them was an affliction, (and his fighting was) not like your fighting which is carried on for the sake of ruling."