Abdullah bin Sabu' (may Allah have mercy on him) narrates that Sayyiduna Ali (may Allah be pleased with him) addressed us in a sermon and said: "By the One who split the seed and created the soul, this will surely be dyed with this," meaning his beard being dyed with the blood of his head.
The narrator says: A man said: "By Allah, whoever does that, we will wipe out his family."
He said: "I remind you of Allah, or he said: I adjure you by Allah, that none be killed for me except my killer."
A man said: "O Commander of the Believers, will you not name your successor?" He said: "No. But I leave you in the same state in which the Messenger of Allah (peace and blessings be upon him) left you."
He said: "Then what will you say to Allah, the Mighty and Majestic, when you meet Him?"
He said: "I will say: 'O Allah, You kept me among them for as long as You willed, then You took my soul and I entrusted them to You; so if You will, reform them, and if You will, corrupt them.'"
Abdullah bin Dawud al-Khuraybi and Muhadir narrated it likewise from al-A'mash, from Salamah bin Kuhayl.
Imam al-Daraqutni (may Allah have mercy on him) mentioned the disagreement about it: that some narrators did not mention Salamah bin Kuhayl, while Jarir, Abdullah bin Dawud and Muhadir mentioned him; he said: "The correct version is that of Abdullah and those who corroborated him."
Imam Ahmad (may Allah have mercy on him) narrated it in full through Waki', from al-A'mash, from Salim.
Related hadith on this topic