Abu Habiba reported,

My brother left a portion of his wealth to me as a bequest. I met Abu al-Darda and said, "My brother has left me a portion of his wealth as a bequest. Where do you think I should place it, among the poor, the needy, or those striving in the path of Allah?"He replied, "As for me, I would not consider anything equal to those striving in the path of Allah. I heard the Messenger of Allah ﷺ say, 'The example of one who frees a slave at the time of death is like the one who gives a gift only after he has eaten his fill.'"

Azami 6167

Hasan

عن أبي حبيبة الطائي قال

أوصى إلي أخي بطائفة من ماله فلقيت أبا الدرداء، فقلت: إن أخي أوصى إلي بطائفة من ماله، فأين ترى لي وضعه: في الفقراء، أو المساكين، أو المجاهدين في سبيل الله؟ فقال: أما أنا فلو كنت لم أعدل بالمجاهدين. سمعت رسول الله ﷺ يقول: مثل الذي يعتق عند الموت كمثل الذي يهدي إذا شبع.

الأعظمي 6167حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Emancipation of slaves
Section
Virtue of freeing slaves while in good health
Numbering
Jami al-Kamil 6167 (2nd edition)
Azami 6167