quality:corruption, structural:summarization, quality:correction
History

Traditions of the life of Muhammad and the early history of Islam were passed down mostly orally for more than a hundred years after Muhammad's death in AD 632. Muslim historians say that Caliph Uthman ibn Affan (the third khalifa (caliph) of the Rashidun Caliphate, or third successor of Muhammad, who had formerly been Muhammad's secretary), is generally credited with urging Muslims to record the hadith just as Muhammad had suggested that some of his followers to write down his words and actions.

Uthman's labours were cut short by his assassination, at the hands of aggrieved soldiers, in 656. No direct sources survive directly from this period so we are dependent on what later writers tell us about this period.

According to British historian of Arab world Alfred Guillaume, it is "certain" that "several small collections" of hadith were "assembled in Umayyad times."

In Islamic law, the use of hadith as it is understood today (hadith of Muhammad with documentation, isnads, etc.) came gradually. According to scholars such as Joseph Schacht, Ignaz Goldziher, and Daniel W. Brown, early schools of Islamic jurisprudence used the rulings of the Prophet's Companions, the rulings of the Caliphs, and practices that “had gained general acceptance among the jurists of that school”. On his deathbed, Caliph Umar instructed Muslims to seek guidance from the Quran, the early Muslims (muhajirun) who emigrated to Medina with Muhammad, the Medina residents who welcomed and supported the muhajirun (the ansar) and the people of the desert.

According to the scholars Harald Motzki and Daniel W. Brown the earliest Islamic legal reasonings that have come down to us were "virtually hadith-free", but gradually, over the course of second century A.H. "the infiltration and incorporation of Prophetic hadiths into Islamic jurisprudence" took place.

It was Abū ʿAbdullāh Muhammad ibn Idrīs al-Shāfiʿī (150-204 AH), known as al-Shafi'i, who emphasized the final authority of a hadith of Muhammad, so that even the Quran was "to be interpreted in the light of traditions (i.e. hadith), and not vice versa." While traditionally the Qur'an has traditionally been considered superior in authority to the sunna, Al-Shafi'i "forcefully argued" that the sunna was "on equal footing with the Quran", (according to scholar Daniel Brown) for (as Al-Shafi'i put it) “the command of the Prophet is the command of God.”

In 851 the rationalist Mu`tazila school of thought fell out of favor in the Abbasid Caliphate. The Mu`tazila, for whom the "judge of truth... was human reason," had clashed with traditionists who looked to the literal meaning of the Quran and hadith for truth. While the Quran had been officially compiled and approved, hadiths had not.One result was the number of hadiths began "multiplying in suspiciously direct correlation to their utility" to the quoter of the hadith (Traditionists quoted hadith warning against listening to human opinion instead of Sharia; Hanafites quoted a hadith stating that "In my community there will rise a man called Abu Hanifa who will be its guiding light". In fact one agreed upon hadith warned that, "There will be forgers, liars who will bring you hadiths which neither you nor your forefathers have heard, Beware of them." In addition the number of hadith grew enormously. While Malik ibn Anas had attributed just 1720 statements or deeds to the Muhammad, it was no longer unusual to find people who had collected a hundred times that number of hadith.

Faced with a huge corpus of miscellaneous traditions supporting different views on a wide variety of controversial matters—some of them flatly contradicting each other—Islamic scholars of the Abbasid period sought to authenticate hadith. Scholars had to decide which hadith were to be trusted as authentic and which had been fabricated for political or theological purposes. To do this, they used a number of techniques which Muslims now call the science of hadith.

The earliest surviving hadith manuscripts were copied on papyrus. A long scroll collects traditions transmitted by the scholar and qadi 'Abd Allāh ibn Lahīʻa (d. 790). A Ḥadīth Dāwūd (History of David), attributed to Wahb ibn Munabbih, survives in a manuscript dated 844. A collection of hadiths dedicated to invocations to God, attributed to a certain Khālid ibn Yazīd, is dated 880-881. A consistent fragment of the Jāmiʿ of the Egyptian Maliki jurist 'Abd Allāh ibn Wahb (d. 813) is finally dated to 889.