Prophet Muhammad only followed the Quran. Hadiths came 200 years later after the death of the prophet Muhammad. Also prophet prohibited to write any of his sayings (Hadiths) beside the Quran.
1) Imam Ahmad Ibn Hanbal, Muslim, al-Darami (the teacher of Bukhari), al-Termedhi and Nasaei narrated in their Isnad from Abu-Sa’eid al-Khodri: The Prophet (P) said:
“Do not quote me in other than the Quran. So, whoever has written anything from me other than the Quran, shall erase it.”
2) Ahmad Ibn Hanbal narrated from Zaid Ibn Thabet:
“The Messenger of Allah (P) prohibited us from writing anything from him and he erased them.”
3) Ahmad Ibn Hanbal narrated from Abu-Huraira:
“We were sitting writing what we had heard from the Prophet (P), when the Prophet (P) arrived. He asked what we were writing. We said: What we have heard from you. He said: Are you (compiling) a book besides the Book of Allah? We said: (we write) what we hear from you. He said: “Write the Book of Allah. Write only the Book of Allah. Are you writing other than the Book of Allah? Write only the Book of Allah.” Abu-Huraira said: Following the instruction of the Prophet (P) we collected our writings and burnt them in a fire.”
>>>>>> ALSO THIS HADITH <<<<<<<
Prophet said “FOR IT WAS JUST A PERSONAL OPINION OF MINE, AND DO NOT GO AFTER MY PERSONAL OPINION”
Musa b. Talha reported:
I and Allah’s Messenger (may peace be upon him) happened to pass by people near the date-palm trees. He (the holy prophet) said: what are these people doing? They said: they are grafting, i. e. they combine the male with the female (tree) and thus they yield more fruit. Thereupon Allah’s messenger said: I do not find it to be of any use. The people were informed about it and they abandoned this practice. Allah’s Messenger (was later) on informed (that the yield had dwindled), whereupon he said: if there is any use of it, then they should do it, for it was just a personal opinion of mine, and do not go after my personal opinion; but when I say to you anything on behalf of Allah, then do accept it, for I do not attribute lie to Allah, the Exalted and Glorious
(Sahih Muslim, Book 030, Number 5830).