Abdullah bin Umar reported,

The Messenger of Allah ﷺ said, "Listening and obeying are obligatory upon every Muslim, in what he likes and what he dislikes, so long as he is not commanded to commit a sin. If he is commanded to commit a sin, then there is no listening and no obeying."

Tirmidhi 1707

Sahih

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

عن ابن عمر قال

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

الترمذي 1707صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Jihad
Chapter
No obedience to a created being in disobedience to the Creator
Numbering
Darussalam 1707
Tirmidhi 1707