Sunan an-Nasa'i
Grading supplied with this record: Hasan (Darussalam)
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
أَخْبَرَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، عَنْ مُحَمَّدٍ، قَالَ حَدَّثَنِي شُعْبَةُ، عَنْ أَبِي إِسْحَاقَ، قَالَ سَمِعْتُ نَاجِيَةَ بْنَ كَعْبٍ، عَنْ عَلِيٍّ، رضى الله عنه أَنَّهُ أَتَى النَّبِيَّ صلى الله عليه وسلم فَقَالَ إِنَّ أَبَا طَالِبٍ مَاتَ . فَقَالَ اذْهَبْ فَوَارِهِ " . قَالَ إِنَّهُ مَاتَ مُشْرِكًا . قَالَ " اذْهَبْ فَوَارِهِ " . فَلَمَّا وَارَيْتُهُ رَجَعْتُ إِلَيْهِ فَقَالَ لِي " اغْتَسِلْ " ."
It was narrated that Abbu Ishaq said:
"I heard Najiyah bin Ka'b narrating from 'Ali that he came to the Prophet (ﷺ) and said: 'Abu Talib has died.' He said: 'Go and bury him.' He said: 'He died as an idolator.' He said: 'Go and bury him.' ('Ali said:) 'When I had buried him I went back to him and he said to me: 'Perform Ghusl.'"
Full reference and source
Sunan an-Nasa'i English : Vol. 1, Book 1, Hadith 190 Arabic : Book 1, Hadith 191
View source on Sunnah.com (opens in a new tab)