The Book of Prayers (Kitab Al-Salat)

Muslim :: Book 4 : Hadith 1890

'Adi b. Hatim reported that a person recited a sermon before the Apostle of Allah (may peace be upon him) thus: He who obeys Allay and His Apostle, he in fact follows the right path, and he who disobeys both of them, he goes astray. Upon this the Messenger of Allah (may peace be upon him) said: What a bad speaker you are; say: He who disobeys Allah and His Apostle. Ibn Numair added: He in fact went astray.

Source materials are from the University of Southern California MSA site
Hadith eBooks converted from Imaan Star