Abdullah bin Amr bin As reported,

I was sitting with him in the shade of the Kaabah while he was speaking to the people. He said, "We were with the Messenger of Allah ﷺ on a journey, and we made camp at a certain place. Some of us were pitching tents, some were tending to their livestock, and some were practicing archery, when the caller of the Messenger of Allah ﷺ announced, 'The prayer is to be held in congregation.'"He said, "So I came to him while he was addressing the people, saying, 'People, there has never been a prophet before me except that it was his duty to guide his community to what he knew was best for them and to warn them against what he knew was harmful to them. Indeed, the well-being of this community lies in its earliest part, and its later part will be afflicted with trials and tribulations, each one making the previous seem mild. A trial will come, and the believer will say, "This is my ruin." Then it will pass. Then another will come, and he will say, "This one, this one." Then another will come, and he will say, "This one, this one." Then it will pass. So whoever wishes to be saved from the Fire and admitted to Paradise, let his death come upon him while he believes in Allah and the Last Day, and let him treat people the way he would wish to be treated. Whoever pledges allegiance to a leader, giving him the clasp of his hand and the fruit of his heart, let him obey him if he is able.'" And once he said, "as much as he is able."When I heard this, I pushed my head between two men and said, "But your cousin Muawiya orders us to do such and such."He placed his fist on his forehead, then lowered his head, then raised it and said, "Obey him in obedience to Allah, and disobey him in disobedience to Allah."I asked him, "Did you hear this from the Messenger of Allah ﷺ yourself?"He replied, "Yes. My ears heard it and my heart retained it."

Ahmad 6793

Sahih

حدثنا وكيع حدثنا الأعمش عن زيد بن وهب عن عبد الرحمن بن عبد رب الكعبة

عن عبد الله بن عمرو قال

كنت جالسا معه في ظل الكعبة وهو يحدث الناس قال كنا مع رسول الله ﷺ في سفر فنزلنا منزلا فمنا من يضرب خباءه ومنا من هو في جشره ومنا من ينتضل إذ نادى منادي رسول الله ﷺ الصلاة جامعة قال فانتهيت إليه وهو يخطب الناس ويقول أيها الناس إنه لم يكن نبي قبلي إلا كان حقا عليه أن يدل أمته على ما يعلمه خيرا لهم وينذرهم ما يعلمه شرا لهم ألا وإن عافية هذه الأمة في أولها وسيصيب آخرها بلاء وفتن يرقق بعضها بعضا تجيء الفتنة فيقول المؤمن هذه مهلكتي ثم تنكشف ثم تجيء فيقول هذه هذه ثم تجيء فيقول هذه هذه ثم تنكشف فمن أحب أن يزحزح عن النار ويدخل الجنة فلتدركه منيته وهو يؤمن بالله واليوم الآخر ويأتي إلى الناس ما يحب أن يؤتى إليه ومن بايع إماما فأعطاه صفقة يده وثمرة قلبه فليطعه إن استطاع وقال مرة ما استطاع فلما سمعتها أدخلت رأسي بين رجلين وقلت فإن ابن عمك معاوية يأمرنا فوضع جمعه على جبهته ثم نكس ثم رفع رأسه فقال أطعه في طاعة الله واعصه في معصية الله قلت له أنت سمعت هذا من رسول الله ﷺ قال نعم سمعته أذناي ووعاه قلبي

أحمد 6793صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Amr bin As
Numbering
Darussalam 6793
Ahmad 6793