The Sahih Bukhari collection of Hadiths is considered to be the most authentic collection of the teachings and sayings of the Prophet Muhammad SAW.
These Prophetic traditions, or hadith, were collected by the Uzbek Muslim scholar Muhammad al-Bukhari, after being transmitted orally for generations.
Al-Bukhari traveled widely throughout the Abbasid empire from the age of 16, collecting those traditions he thought trustworthy. It is said that al-Bukhari collected over 300,000 hadith and included only 2,602 traditions in his Sahih.
At the time when Bukhari saw [the earlier] works and conveyed them, he found them, in their presentation, combining between what would be considered sahih (correct) and hasan (good) and that many of them included daʻīf (weak) hadith.
This aroused his interest in compiling hadith whose authenticity was beyond doubt. What further strengthened his resolve was something his teacher, hadith scholar Ishaq ibn Ibrahim al-Hanthalee – better known as Ishaq Ibn Rahwayh – had said.
Muhammad ibn Ismaa’eel al-Bukhari said, “We were with Ishaq Ibn Rahwayh who said, ‘If only you would compile a book of only authentic narrations of the Prophet.’ This suggestion remained in my heart so I began compiling the Sahih.”
Bukhari also said, “I saw the Prophet in a dream and it was as if I was standing in front of him. In my hand was a fan with which I was protecting him. I asked some dream interpreters, who said to me, ‘You will protect him from lies.’ This is what compelled me to produce the Sahih.”