Ayesha reported,

Ayesha wanted to buy Barirah in order to free her, but Barirah's owners insisted on stipulating that they would retain her right of guardianship. Ayesha mentioned this to the Prophet ﷺ, and he said to her, "Buy her, for guardianship belongs only to the one who frees the slave."She said, "Some meat was brought to the Prophet ﷺ, and I said, 'This is what was given to Barirah as charity.'"He replied, "It is charity for her and a gift for us."

Azami 4277

Sahih

عن عائشة

أنها أرادت أن تشتري بريرة للعتق وأراد مواليها أن يشترطوا ولاءها فذكرت عائشة للنبي ﷺ فقال لها النبي ﷺ: اشتريها فإنما الولاء لمن أعتق. قالت: وأتي النبي ﷺ بلحم فقلت: هذا ما تصدق به على بريرة فقال: هو لها صدقة ولنا هدية.

الأعظمي 4277صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Zakat
Chapter
Zakat is not permissible for the Prophet ﷺ
Section
If charity is transformed into a gift, it becomes permissible for the Prophet ﷺ and his family
Numbering
Jami al-Kamil 4277 (2nd edition)
Azami 4277