Abdullah bin Umar reported,

Ibn Umar came out to us, and we were hoping he would tell us a hadith that would delight us. A man rushed up to him and said, "Abu Abdul-Rahman, what do you say about fighting during civil strife, given that Allah عز وجل has said, 'And fight them until there is no more fitnah'?"Ibn Umar replied, "Woe to you, do you know what fitnah is? The Messenger of Allah ﷺ used to fight the polytheists, and entering into their religion was the fitnah. It is not like your fighting one another over kingship."

Ahmad 5690

Sahih

حدثنا هشام بن سعيد حدثنا خالد يعني الطحان حدثنا بيان عن وبرة عن ابن جبير يعني سعيدا

عن ابن عمر قال

خرج إلينا ابن عمر ونحن نرجو أن يحدثنا بحديث يعجبنا فبدرنا إليه رجل فقال يا أبا عبد الرحمن ما تقول في القتال في الفتنة فإن الله عز وجل قال {وقاتلوهم حتى لا تكون فتنة} قال ويحك أتدري ما الفتنة إنما كان رسول الله ﷺ يقاتل المشركين وكان الدخول في دينهم فتنة وليس بقتالكم على الملك

أحمد 5690صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Umar
Numbering
Darussalam 5690
Ahmad 5690