It is narrated from Sayyiduna Abbas bin Abd al-Muttalib (may Allah be pleased with him) that he came to the Messenger of Allah (peace and blessings be upon him) and said: "O Messenger of Allah! I am your uncle; I have grown old, my bones have become weak and my death has drawn near, so teach me something by which Allah will benefit me." He (peace and blessings be upon him) said: "O Abbas! You are my uncle, but I cannot avail you anything against Allah; rather, ask Allah for pardon and well-being in this world and the Hereafter." He (peace and blessings be upon him) said this three times.
Imam Ahmad (may Allah have mercy on him) narrated it through Husayn bin Ali from Za'idah.
He also narrated it from Abdullah bin Bakr and Rawh bin Hatim bin Abi Saghirah, from a man of Banu al-Muttalib, who said: Ali bin Abdullah bin Abbas (may Allah have mercy on him) came to us and said: "My father Abdullah bin Abbas (may Allah be pleased with them both) narrated this hadith to me from his father Abbas (may Allah be pleased with him)."
Imam al-Tirmidhi (may Allah have mercy on him) narrated it through Ahmad bin Mani' and said: "This hadith is sahih, and Abdullah bin al-Harith did hear from Abbas (may Allah be pleased with him)."
We have only mentioned it because Imam al-Tirmidhi (may Allah have mercy on him) declared it sahih, since his narration contains Yazid bin Abi Ziyad; however, we have also mentioned it through another chain besides his.
Related hadith on this topic