Sunan an-Nasa'i
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!'"
أَخْبَرَنَا إِسْحَاقُ بْنُ مَنْصُورٍ، قَالَ أَنْبَأَنَا عَبْدُ الرَّحْمَنِ، قَالَ حَدَّثَنَا سُفْيَانُ، عَنْ عَبْدِ الْعَزِيزِ، عَنْ تَمِيمِ بْنِ طَرَفَةَ، عَنْ عَدِيِّ بْنِ حَاتِمٍ، قَالَ تَشَهَّدَ رَجُلاَنِ عِنْدَ النَّبِيِّ صلى الله عليه وسلم فَقَالَ أَحَدُهُمَا مَنْ يُطِعِ اللَّهَ وَرَسُولَهُ فَقَدْ رَشَدَ وَمَنْ يَعْصِهِمَا فَقَدْ غَوَى . فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " بِئْسَ الْخَطِيبُ أَنْتَ " .
Grade: sahih (Darussalam)
Reference