Hadith 6:1310
Waki’ narrated to us, from Abu Ja’far al-Razi, from al-Rabi’, from Abu al-‘Aliyah regarding [the verse]: "And they will not disobey you in what is right," he said: "Wailing." He said: "So in every matter that accords with Allah—[or] obedience to Allah—He did not approve for His Prophet that he be obeyed in the disobedience of Allah."
حدثنا وكيع عن أبي جعفر الرازي عن الربيع عن أبي العالية @QB@ ولا يعصينك في معروف @QE@ قال النوح قال ففي كل أمر وافق الله ( ( ( لله ) ) ) طاعة فلم يرض لنبيه أن يطاع في معصية الله