It is narrated from Sayyiduna Ali (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) appointed a man from the Ansar as the commander of a small detachment and sent them off, and he ordered the people to listen to him and obey. Then the people angered the commander over something, whereupon the commander said: "Gather firewood for me." So the people gathered firewood. Then he said: "Light a fire." So the people lit a fire. After that the commander said: "Did the Messenger of Allah (peace and blessings be upon him) not order you to listen to me and obey?" The people said: "Yes (he did)." So the commander ordered: "Then enter this fire." Sayyiduna Ali (may Allah be pleased with him) said that (on hearing this) the people began to look at one another and said: "We fled from the Fire itself to take refuge with the Messenger of Allah (peace and blessings be upon him) (so how can we jump into fire?)." Meanwhile the commander's anger cooled down and the fire also went out. Then, when those people came to the Messenger of Allah (peace and blessings be upon him) and told him the whole incident, he (peace and blessings be upon him) said: "If they had entered that fire, they would never have come out of it. Remember! Obedience is obligatory only in what is right (ma'ruf)."
Hadith Referenceمسند أبي يعلى الموصلي / مسند علي بن أبي طالب رضي الله عنه / 611
Hadith Gradingمحدثین:إسناده صحيح
Hadith Takhrij«حکم الحدیث مسند ابی یعلی محققاً تنسیق حسين سليم أسد - مکتبہ شاملہ :قال حسين سليم أسد: إسناده صحيح . » «قال سعيد بن محمد السناري: صحيح: سبق [برقم 378،375]» «أخرجه صحيح البخاري برقم: 4085، وأخرجه صحيح مسلم برقم: 1840، وأخرجه سنن النسائي برقم: 4205، وأخرجه سنن أبي داود برقم: 2625، وأخرجه مسند أحمد برقم: 1021، وأخرجه فتح الباري برقم: 4085، 6725، 6830، وأخرجه مسند البزار برقم: 585، 586، وأخرجه المعجم الأوسط للطبراني برقم: 1374، مسند ابویعلیٰ ترقیم الاثری: 606»