(1) باب ذِكْرِ الْفِتَنِ وَدَلاَئِلِهَا
Narrated Abdullah b. 'Amr:
The Prophet (ﷺ) as saying: If a man takes an oath of allegiance to a leader, and puts his hand on his hand and does it with the sincerity of his heart, he should obey him as much as possible. If another man comes and contests him, then behead the other one. The narrator 'Abd al-Rahman said: I asked: Have you heard this from the Messenger of Allah ? He said: My ears heard it and my heart retained it. I said: Your cousin Mu'awiyah orders us that we should do this and do that. He replied: Obey him in the acts of obedience to Allah, and disobey him in the acts of disobedience to Allah.
Reference: Sunan Abi Dawud 4248
In-book reference: Book 37, Hadith 9
English translation: Book 36, Hadith 4236