Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
suyuti:7653a
Request/Fix translation

  

السيوطي:٧٦٥٣a

"إِنَّمَا الطاعةُ في المعروفِ ".  

[حم] أحمد [خ] البخاري [م] مسلم عن على

See similar narrations below:

Collected by Nasāʾī's Kubrá
nasai-kubra:8669Maḥmūd b. Ghaylān > Abū Dāwud > Shuʿbah > Manṣūr And al-Aʿmash Samiʿā Saʿd b. ʿUbaydah > Abū ʿAbd al-Raḥman al-Sulamī > ʿAlī

[Machine] From the Prophet (PBUH), he said, "Indeed, obedience is only in what is recognized as good."  

الكبرى للنسائي:٨٦٦٩أَخْبَرَنَا مَحْمُودُ بْنُ غَيْلَانَ قَالَ حَدَّثَنَا أَبُو دَاوُدَ عَنْ شُعْبَةَ عَنْ مَنْصُورٍ وَالْأَعْمَشِ سَمِعَا سَعْدَ بْنَ عُبَيْدَةَ عَنْ أَبِي عَبْدِ الرَّحْمَنِ السُّلَمِيِّ عَنْ عَلِيٍّ

عَنِ النَّبِيِّ ﷺ قَالَ «إِنَّمَا الطَّاعَةُ فِي الْمَعْرُوفِ»