Burayda bin Husayb reported,

While I was sitting with the Messenger of Allah ﷺ, a woman came to him and said, "I gave my mother a slave girl as charity, and now my mother has died."He replied, "Your reward is confirmed, and the inheritance has returned the slave girl to you."

Azami 4133

Sahih

عن بريدة بن الحصيب، قال

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

الأعظمي 4133صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Zakat
Chapter
Encouragement to pay zakat and charity and the ways of spending them
Section
Who gave charity then inherited it back
Numbering
Jami al-Kamil 4133 (2nd edition)
Azami 4133