Sunan an-Nasa'i, Book 26, Hadith 84 (Nasa'i 3285)

It was narrated that 'Adiyy bin Hatim said:

"Two men recited a Tashahhud before the Prophet and one of them said: 'Whoever obeys Allah and His Messenger has been guided aright and whoever disobeys them has gone astray.' The Messenger of Allah said: 'What a bad speaker you are!'"