With a heart heavy from rejection, Imām al-Bukhārī departed from Naysābūr. His steps were slow from the burden of what had transpired. He turned toward Bukhārā—his homeland, his beginning.
When he reached a farsakh outside the city, he did not enter immediately. Instead, he set up a modest tent and took residence there. News of his return spread, and soon, people from all walks of life—irrespective of caste, creed, or rank—came streaming in. They embraced him as their own, their city’s son of light, their treasure returned.
They came with joy in their hearts. Their scholar had returned. Their pride, their beloved son, had come home. He welcomed them all—blessing them with dirhams, dinars, and heartfelt duʿā.
But peace was brief.
Soon, Khalid ibn Aḥmad al-Dhuhlī, the governor of Bukhārā, sent a formal message through a messenger:
“Bring your works, al-Jāmiʿ and al-Tārīkh, and present them before me. I wish to hear them directly from you.”
It wasn’t a request—it was a command cloaked in political privilege.
But the Imam’s reply was resolute and free:
I will not come. I do not carry my books to the gates of kings. Knowledge has its own dignity. I will not demean it by parading it for power. If you wish to hear something, come to my mosque or my home. If not, you are the ruler—ban me from teaching if you must. But tomorrow, before Allah, I will bear witness that I did not conceal what I knew.
Khalid was enraged. Resentment swelled in his chest.
Soon, another message arrived from the governor:
“Bring your books and present them in my palace so my children may study from you.”
Al-Bukhārī replied: I cannot restrict this knowledge to a few privileged children. It is meant for all, equally. It is a trust, not a favor.
That was enough. Khalid’s cold fury turned into calculated vengeance. As politicians often do, he sought a weapon. And as many before him, he chose the easiest one—religion, misrepresented.
He allied with a court scholar named Ḥurays ibn Abī al-Warqā. Together with others, they began questioning al-Bukhārī’s views. They twisted his words, inflated trivialities, and launched accusations—all designed to isolate him.
The governor, seizing the moment, issued a decree expelling Imām al-Bukhārī from Bukhārā.
The Imam, now cast out, retreated to Baykand—a small town near Samarqand. As he departed, he raised his hands and whispered: O my Lord, if they have plotted against me unjustly, turn their plots back upon them and upon those they love.
And it was answered swiftly.
Within a month, news came: the caliph’s judgment had turned against Governor Khalid. He had gone on ḥajj, but on reaching Baghdad, he was arrested by al-Muwaffaq ibn al-Mutawakkil, the brother of the caliph al-Muʿtamid. Khalid was imprisoned, disgraced, and eventually died behind bars—led even on a donkey through the streets in humiliation. Once celebrated for his rule in Bukhārā, he had fallen because of one grave error: he tried to crush a friend of God.
Those who had conspired with him suffered as well.
Ḥurays, it is said, faced personal ruin. His children and wife endured severe trials. Misfortunes came upon them, one after the other.
Al-Bukhārī, meanwhile, moved once more—this time to Khartank, a quiet village two farsakhs from Samarqand. It was where many of his relatives lived. There, he settled. But inwardly, he had grown silent.
He had not come to Khartank to teach, or to write, or to debate. He came to breathe, to pray, to mourn a world that had turned hostile to the freedom of knowledge. In the darkness of night, he would rise and whisper: O Allah, this earth has become tight upon me. Call me back to You. That will suffice.
Not a month passed. Illness crept into his body. He saw death approaching—and welcomed it. Before departing, he made a few requests: Wrap me in three plain white cloths. No shirt. No turban. I seek no display.
Aḥmad ibn Ḥafṣ, one of his students, said: “When I came to visit him as he neared death, he said, ‘There is nothing in my possessions that I suspect to be unlawful. I have kept myself clear.’”
He spoke this out of humility—as if to say: hold me accountable if I have strayed.
And then, the ocean of knowledge returned to its Source.
He passed away in peace. He was buried in Khartank. But his story did not end there. From his grave, the scent of musk began to rise. It wafted through the air, so pure and sweet that it moved people to tears. It lingered for many days.
Then came another wonder. A beam of light was seen rising from his grave, reaching toward the heavens. The people of Khartank gathered, astonished. Some began to collect soil from his resting place, believing it carried blessings. Eventually, the grave became exposed. Guards were posted. Still, people came. A wooden fence had to be built. And still they gathered, now taking soil from around the grave.
The scent of musk remained. The story spread. Even those who had once slandered him came. They wept. They admitted their error. They stood by his grave and begged Allah for forgiveness—for themselves, and for how they had wronged him.
Imām al-Bukhārī passed away on a Saturday evening in the year 256 AH, just before Eid al-Fiṭr. He was 62 years old, lacking only thirteen days to complete his 63rd year. His burial took place after the Ẓuhr prayer on the day of Eid.
And even after his death, he continued to bestow wonder.
Abū al-Fatḥ Naṣr ibn al-Ḥasan of Samarqand reports: One year, Samarqand suffered severe drought. The people prayed for rain, but the skies remained closed. Again and again, they pleaded. Nothing.
Then, a man known for piety came to the qāḍī and said: “Take the people to the grave of al-Bukhārī in Khartank. Ask Allah there. It will rain.”
They went. They stood by the grave. They raised their hands in prayer. Not long after, the sky darkened.
Rain poured down. So intense was the downpour that the people remained in Khartank for seven days—unable to return to Samarqand, just three miles away.
It was as if the heavens themselves had bowed before the one who had preserved the words of the Messenger ﷺ with such precision, devotion, and beauty.
Indeed, the righteous do not die. They live on—through what they leave behind.