Musnad Ahmad 724
Grading supplied with this record: Sahih (Darussalam), al-Bukhari (7257) and Muslim (1840)]
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
It was narrated from ‘Ali that
The Messenger of Allah (ﷺ) sent out an army and appointed a man in charge of them. He lit a fire and said: Enter it. Some people wanted to enter it, but others said: This is what we wanted to flee from. That was mentioned to the Messenger of Allah (ﷺ) and he said to those who had wanted to enter it: “If you had entered it you would have remained in it until the Day of Resurrection.” He said some kind words to the others, then he said: "There is no obedience in that which involves disobedience towards Allah; obedience is only with regard to that which is right and proper."
Full reference and source
Musnad Ahmad 724 Arabic/English book : Book 5, Hadith 724
View source on Sunnah.com (opens in a new tab)