Hadith No: 3
Al-Hakim al-Nisapouri - Al-Mustadrak 'ala al-Sahihayn
Book of Knowledge of the Companions (may Allah be pleased with them) - O Ali, you are a master in this world and a master in the Hereafter
Volume: (3) - Page Number: (128)
[The text is lengthy, so only the relevant excerpt is provided here]
4695 - Abu al-Fadl Muhammad ibn Ibrahim al-Muzakki narrated to us, saying: Ahmad ibn Salamah and al-Husayn ibn Muhammad al-Quttabani narrated to us, and Abu al-Hasan Ahmad ibn al-Khadr al-Shafi'i narrated to me, saying: Ibrahim ibn Abi Talib and Muhammad ibn Ishaq narrated
to us, and Abu Abd Allah Muhammad ibn Abdullah ibn Umayya al-Qurashi also narrated to us:The Prophet (peace be upon him and his holy progeny) looked at me and said: "O Ali, you are a master in this world and a master in the Hereafter. Your friend is my friend, and my friend is the friend of Allah. Your enemy is my enemy, and my enemy is the enemy of Allah. Woe to anyone who bears you ill will after me." It is authentic according to the criteria of the two Shaykhs, and Abu al-Azhar is considered trustworthy by unanimous agreement among them. And when a trustworthy person narrates a hadith alone, it is considered sound according to its best interpretation...