Ayesha reported,

I bought Barirah, and the Prophet ﷺ said, "Buy her, for loyalty belongs to the one who frees the slave."A sheep was given to her as charity, and the Prophet ﷺ said, "It is charity for her and a gift for us."Hakam said, "Her husband was a free man." Hakam's statement is mursal.Ibn Abbas said, "I saw him as a slave."

Bukhari 6751

Sahih

حدثنا حفص بن عمر حدثنا شعبة عن الحكم عن إبراهيم عن الأسود

عن عائشة قالت

اشتريت بريرة فقال النبي ﷺ اشتريها فإن الولاء لمن أعتق وأهدي لها شاة فقال هو لها صدقة ولنا هدية قال الحكم وكان زوجها حرا وقول الحكم مرسل وقال ابن عباس رأيته عبدا

البخاري 6751صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Obligatory duties
Chapter
Wala belongs to the one who emancipates, and the inheritance of a foundling
Numbering
Darussalam 6751
Bukhari 6751