It is narrated from Sayyiduna Ali bin Abi Talib (may Allah be pleased with him) that he said: "When Abu Talib died, I came to the Prophet (peace and blessings be upon him) and said: Your old uncle, who was astray, has died. He (peace and blessings be upon him) said: 'Go and cover him with earth (bury him), and do not do anything new until you come back to me.' So I did what he (peace and blessings be upon him) had ordered me, then I came to him (peace and blessings be upon him), and he (peace and blessings be upon him) said: 'Take a ritual bath (ghusl).' Then he (peace and blessings be upon him) taught me supplications that are dearer to me than red camels."
Imam Abu Dawud (may Allah have mercy on him) narrated it likewise through the chain of Musaddad, from Yahya bin Sa'id, from Sufyan (may Allah have mercy on him).
Imam al-Daraqutni (may Allah have mercy on him) was asked about this hadith, and he said: "Shu'bah, al-Thawri, Isra'il, Sharik, Zuhayr, Qays, Warqa' and Ibrahim bin Tahman (may Allah have mercy on them) narrated it through the chain of Abu Ishaq, from Najiyah bin Ka'b, from Sayyiduna Ali (may Allah be pleased with him). Al-Husayn bin Waqid and Abu Hamzah al-Sukkari (may Allah have mercy on them) differed from them: the two of them narrated it through the chain of Abu Ishaq, from al-Harith, from Sayyiduna Ali (may Allah be pleased with him), and the two of them erred in mentioning al-Harith." Imam al-Daraqutni (may Allah have mercy on him) mentioned further differences in it, and said: "The preserved (mahfuz) version is that of al-Thawri, Shu'bah and those who followed them, who narrated it from Abu Ishaq, from Najiyah bin Ka'b, from Sayyiduna Ali (may Allah be pleased with him). Likewise Furat al-Qazzaz (may Allah have mercy on him) also narrated it from Najiyah bin Ka'b."
And something similar has also been narrated by Abd al-Rahman bin Abi Layla (may Allah have mercy on him) from Sayyiduna Ali (may Allah be pleased with him).
Related hadith on this topic