It is narrated from Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) sent an army under the command of Sayyiduna Alqamah bin Mujazziz (may Allah be pleased with him), and I was among them. When we had reached the furthest point of our expedition, or were somewhere along the way, a group asked him for permission (to return); he gave them permission and appointed Sayyiduna Abdullah bin Hudhafah (may Allah be pleased with him) as their commander. He was one of the people of Badr, and there was an element of good humour and jest in his nature. I was among those who returned with him. While we were on the way and had halted at a place, the people lit a fire to warm themselves or to prepare some food on it, when suddenly Sayyiduna Abdullah (may Allah be pleased with him) addressed them and said: "Is it not binding on you to listen to me and obey me?" The people replied: Of course. He asked again: "Then will you do whatever I command you?" They said: Yes. He said: "I adjure you by my right and by your obedience, and firmly command you, that you all leap into this fire." Hearing this, some people stood up and tightened their waist-wrappers, until, when he was sure that they were really about to leap into it, he said: "Stop, and save yourselves; I was only joking with you." Then when they came to the Prophet of Allah (peace and blessings be upon him) and mentioned this incident to him (peace and blessings be upon him), the Messenger of Allah (peace and blessings be upon him) said: "Whoever among them (the rulers or commanders) commands you to disobey Allah, do not obey him at all."
Hadith Referenceمسند أبي يعلى الموصلي / من مسند أبي سعيد الخدري / 1349
Hadith Gradingمحدثین:إسناده حسن
Hadith Takhrij«حکم الحدیث مسند ابی یعلی محققاً تنسیق حسين سليم أسد - مکتبہ شاملہ :قال حسين سليم أسد: إسناده حسن . » «قال سعيد بن محمد السناري: حسن» «أخرجه سنن ابن ماجه برقم: 2863، وأخرجه مسند أحمد برقم: 11245، وأخرجه فتح الباري برقم: 4085، وأخرجه صحيح ابن حبان برقم: 4558، مسند ابویعلیٰ ترقیم الاثری: 1344»