(34) باب جَزَاءِ مَنْ أُمِرَ بِمَعْصِيَةٍ فَأَطَاعَ
It was narrated that Ibn 'Umar said:
"The Messenger of Allah said: 'The Muslim must hear and obey whether he likes it or not, unless he is commanded to commit an act of disobedience. If he is commanded to commit an act of disobedience, then he is not required to hear and obey."'
Reference: Sunan an-Nasa'i 4206
In-book reference: Book 39, Hadith 58
English translation: Vol. 5, Book 39, Hadith 4211