Imam Bukhari's great-grandfather, al-Mughirah, settled in Bukhara after accepting Islam at the hands of Bukhara's governor, Yaman al-Ju`fi. As was the custom, he became a mawla of Yaman, and his family continued to carry the nisbah of "al-Ju`fi".[2][7][8]

Al-Mughirah's father, Bardizbah, is the earliest known ancestor of Bukhari according to most scholars and historians. He was a Magi (Zoroastrian and died as such. As-Subki is the only scholar to name Bardizbah's father, who he says was named Bazzabah (Persian: بذذبه‎‎). Little is known of either Bardizbah or Bazzabah, except that they were Persian and followed the religion of their people.[2] Historians have also not come across any information on Bukhari's grandfather, Ibrahim ibn al-Mughirah.[2]

He began studying hadith in the year 205 (A.H.). He memorized the works of [‘Abdullah] ibn al-Mubaarak while still a child. He was raised by his mother because his father died when he was an infant. He traveled with his mother and brother in the year 210 after having heard the narrations of his region. He began authoring books and narrating hadith while still an adolescent. He said, “When I turned eighteen years old, I began writing about the Companions and the Followers and their statements. This was during the time of ‘Ubaid Allah ibn Musa (one of his teachers). At that time I also authored a book of history at the grave of the Prophet at night during a full moon.[9]

At the age of sixteen, he, together with his brother and widowed mother, made the pilgrimage to Mecca. From there he made a series of travels in order to increase his knowledge of hadith. He went through all the important centres of Islamic learning of his time, talked to scholars and exchanged information on hadith. It is said that he heard from over 1,000 men, and learned over 600,000 traditions.

After sixteen years absence, he returned to Bukhara, and there he drew up his al-Jami' as-Sahih, a collection of 7,275 tested traditions, arranged in chapters so as to afford a basis for a complete system of jurisprudence without the use of speculative law.

His book is highly regarded among Sunni Muslims, and considered the most authentic collection of hadith, even ahead of the Muwatta Imam Malik and Sahih Muslim of Bukhari's student Muslim ibn al-Hajjaj. Most Sunni scholars consider it second only to the Quran in terms of authenticity. He also composed other books, including al-Adab al-Mufrad, which is a collection of hadiths on ethics and manners, as well as two books containing biographies of hadith narrators (see isnad).

In the year 864/250, he settled in Nishapur. It was in Nishapur that he met Muslim ibn al-Hajjaj. He would be considered his student, and eventually collector and organiser of hadith collection Sahih Muslim which is considered second only to that of al-Bukhari. Political problems led him to move to Khartank, a village near Samarkand where he died in the year 870/256.[10]

Bukhari wrote three works discussing narrators of hadith with respect to their ability in conveying their material: the "brief compendium of hadith narrators," "the medium compendium" and the "large compendium" (al-Tarikh al-Kabīr, al-Tarīkh al-Ṣaghīr, and al-Tarīkh al-Awsaţ). The large compendium is published and well-identified. The medium compendium was thought to be the brief collection and was published as such. The brief compendium has yet to be found.[12] Another work, al-Kunā, is on patronymics: identifying people who are commonly known as "Father of so-and-so". Then there is a brief work on weak narrators: al-Ḍu'afā al-Ṣaghīr.

Two of Bukhari's hadith works have survived: al-Adab al-mufrad ("the book devoted to matters of respect and propriety") and al-Jāmi’ al-Musnad al-Sahīh al-Mukhtaṣar min umūr Rasûl Allāh wa sunnanihi wa ayyāmihi (The abridged collection of sound reports with chains of narration going back all the way to the Prophet regarding matters pertaining to the Prophet, his practices and his times.) – also known as Sahih al-Bukhari.