After Prophet Muhammad died, Muslim scholars wrote down stories about what he had said and done. They also wrote down facts about who told each story. Some of the stories were retold many times before they were written down, and some stories did not agree in every detail resulting in the detailed study of hadith by scholars to compare between those hadith.