Abdullah bin Umar reported,

The Prophet ﷺ said, "It is the duty of the Muslim to listen and obey, in what he likes and what he dislikes, unless he is commanded to commit a sin. If he is commanded to commit a sin, then there is no listening and no obedience."

Muslim 4763

Sahih

حدثنا قتيبة بن سعيد حدثنا ليث عن عبيد الله عن نافع

عن ابن عمر

عن النبي ﷺ أنه قال على المرء المسلم السمع والطاعة فيما أحب وكره إلا أن يؤمر بمعصية فإن أمر بمعصية فلا سمع ولا طاعة

مسلم 4763صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Leadership
Chapter
Obligation of obeying leaders in matters other than disobedience and its prohibition in disobedience
Numbering
Darussalam 4763
Muslim 4763