A man delivered a speech in the presence of the Prophet ﷺ and said, "Whoever obeys Allah and His Messenger has been guided rightly, and whoever disobeys them has gone astray."The Messenger of Allah ﷺ said, "What a poor speaker you are! Say instead, 'Whoever disobeys Allah and His Messenger.'"
أن رجلا خطب عند النبي ﷺ فقال: من يطع الله ورسوله فقد رشد، ومن يعصهما فقد غوى، فقال رسول الله ﷺ: بئس الخطيب أنت! قل: ومن يعص الله ورسوله.
Muslim narrated it in the Book of Friday Prayer (870) through several routes from Waki, from Sufyan, from Abdul-Aziz bin Rafi, from Tamim bin Tarafa, from Adi bin Hatim, who mentioned it.The hadith contains a disapproval of joining Allah and His Messenger together in a single pronoun, out of concern that this might imply an equating of the two. Although such joining in a single pronoun does occur in some other hadiths and was accepted there, this was because of the listeners involved, who were not suspected of imagining any such equating.