Praise be to Allah.
This hadeeth is not narrated in any of the reliable books of hadeeth; rather it is a fabricated hadeeth which is falsely attributed to the Messenger (peace and blessings of Allah be upon him). The scholars (may Allah have mercy on them) stated that the advice that is attributed to the Prophet (peace and blessings of Allah be upon him) and that he allegedly gave to ‘Ali (may Allah be pleased with him), and everything that is supposedly addressed by the Messenger to Ali is all fabricated, apart from his words: “O Ali, you are to me like Haroon was to Moosa, but there is no Prophet after me.” Among those who have stated this are: Shaykh Mulla ‘Ali al-Qari in al-Asrar al-Marfoo’ah fi’l-Akhbar al-Mawdoo’ah, which is also known as al-Mawdoo’at al-Kubra; Shaykh Isma’eel al-‘Ajlooni in his book Kashf al-Khafa’ wa Muzeel al-Ilbas. Hence I warn my Muslim brothers against being deceived by this hadeeth and similar fabricated reports, or working to print them or publish them among the Muslims, because this is misguiding the masses and deceiving them, and telling lies about the Messenger of Allah (peace and blessings of Allah be upon him), concerning which a stern warning is issued to the one who does so deliberately, as he (peace and blessings of Allah be upon him) said in this saheeh (authentic) hadeeth: “Telling a lie about me is not like telling a lie about anyone else. Whoever tells a lie about me deliberately, let him take his place in Hell.” And he said: “Whoever narrates from me a saying knowing that it is false, then he is one of the liars.”
In the saheeh reports from the Messenger (peace and blessings of Allah be upon him) that are compiled in the reliable books of hadeeth, the Saheehs, Sunans and Musnads, there is sufficient material for the one whom Allah guides to goodness, and there is no need to resort to the reports of liars and fabricators. I ask Allah to enable us all to acquire beneficial knowledge and do righteous deeds, and to keep us all away from the path of misguidance and deviation, for He is All Hearing, Ever Near.
And Allah knows best.