(Qur’an 59:7)
And He, the Exalted, also says: “Nor does he speak from his own desire; it is nothing but a revelation sent down.” (Qur’an 53:3–4)
He says: “Say, ‘If you truly love Allah, then follow me; Allah will love you and forgive you your sins.’” (Qur’an 3:31)
He says: “Indeed, in the Messenger of Allah you have an excellent example for whoever hopes in Allah and the Last Day.” (Qur’an 33:21)
He says: “But no, by your Lord, they will not believe until they make you the judge concerning whatever disputes arise among them, then find within themselves no discomfort(1) regarding what you have decided and submit with full submission.” (Qur’an 4:65)
He says: “If you differ over anything, refer it back to Allah and the Messenger—if you truly believe in Allah and the Last Day.” (Qur’an 4:59) The scholars said: that means, refer it to the Book and the Sunnah.
He says: “Whoever obeys the Messenger has indeed obeyed Allah.” (Qur’an 4:80)
He says: “And indeed, you guide to a straight path—the path of Allah…” (Qur’an 42:52–53)
He says: “So let those who oppose his command beware, lest a trial afflict them or a painful punishment overtake them.” (Qur’an 24:63)
He says: “And remember what is recited in your homes of the verses of Allah and wisdom.” (Qur’an 33:34)
There are many other verses on this subject.
As for the hadiths:
160 – First: Abu Hurayrah, may Allah be pleased with him, reported that the Prophet ﷺ said, “Leave me so long as I leave you. Those before you were only destroyed by their excessive questioning and their disagreement with their prophets. So when I forbid you from something, avoid it; and when I command you to do something, do of it what you are able.” Agreed upon.
161 – Second: Abu Najih al-ʿIrbad ibn Sariyah, may Allah be pleased with him, said: The Messenger of Allah ﷺ delivered to us an eloquent exhortation at which hearts trembled(2) and eyes wept. We said, “O Messenger of Allah, it seems as though this is a farewell sermon, so advise us.” He said, “I counsel you to fear Allah, and to hear and obey even if the one placed in authority over you is an Abyssinian slave. For whoever among you lives long will see much discord…"