"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!'" (Using translation from Nasāʾī 3279)
أَنَّ رَجُلًا خَطَبَ عِنْدَ النَّبِيِّ ﷺ فَقَالَ مَنْ يُطِعِ اللَّهَ وَرَسُولَهُ فَقَدْ رَشَدَ وَمَنْ يَعْصِهِمَا فَقَدْ غَوَى فَقَالَ النَّبِيُّ ﷺ «بِئْسَ الْخَطِيبُ قُلْ وَمَنْ يَعْصِ اللَّهَ وَرَسُولَهُ»