It is narrated from Hazrat Abu Darda (may Allah be pleased with him) that I heard the Prophet say: Whoever frees a slave or gives charity at the time of death, his example is like that of a person who, after quenching his own thirst, gives away what is left over.
Hadith Referenceمسند احمد / من مسند القبائل / 27533