Sunan an-Nasa'i, Book 26, Hadith 84 (In-Book) ⓘ
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!'"
أَخْبَرَنَا إِسْحَاقُ بْنُ مَنْصُورٍ، قَالَ أَنْبَأَنَا عَبْدُ الرَّحْمَنِ، قَالَ حَدَّثَنَا سُفْيَانُ، عَنْ عَبْدِ الْعَزِيزِ، عَنْ تَمِيمِ بْنِ طَرَفَةَ، عَنْ عَدِيِّ بْنِ حَاتِمٍ، قَالَ تَشَهَّدَ رَجُلاَنِ عِنْدَ النَّبِيِّ صلى الله عليه وسلم فَقَالَ أَحَدُهُمَا مَنْ يُطِعِ اللَّهَ وَرَسُولَهُ فَقَدْ رَشَدَ وَمَنْ يَعْصِهِمَا فَقَدْ غَوَى . فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " بِئْسَ الْخَطِيبُ أَنْتَ " .
also referenced under: Hadith 3279 (Reference) & Volume 4, Book 26, Hadith 3281 (DarusSalam)