The corpus of hadith literature cannot be depended on.
The compilers of hadith (the muhaddithun), “no matter how dedicated, were simply too distant from the time of the Prophet, and forgery had become too rampant for authentic hadith to be recovered.”
Some anecdotes of the muhaddithun suggest that they could not prevent forged hadith from being circulated even in their own names.
Read more at Does the Hadith have a solid historical basis?