It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that a man said to the Prophet (peace and blessings be upon him): My father has died; he left wealth and did not make a bequest. If I give charity on his behalf, will it be an expiation for him? He (peace and blessings be upon him) said: "Yes."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الوصايا / 12634