It is narrated from Sayyiduna Ali (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 that your elderly uncle has passed away. He (peace and blessings be upon him) said: 'Go and bury him, and do not do anything (on your own) concerning his affair until you come (back) to me.' So I buried him; (then, when I came back,) he (peace and blessings be upon him) said: 'Go and take a bath (ghusl), and do not do anything until you come to me.' I took a bath and then came to him (peace and blessings be upon him), and he (peace and blessings be upon him) made such supplications for me that receiving red and black camels in exchange for them would not please me as much."
In the narration of Ibn Bakkar (may Allah have mercy on him), al-Suddi (may Allah have mercy on him) said: "Whenever Sayyiduna Ali (may Allah be pleased with him) washed a deceased person, he would (also) take a bath himself."
Something similar is also narrated in the narration of Najiyah bin Ka'b (may Allah have mercy on him).
Related hadith on this topic