Ayesha reported,

She informed him that Barirah came to Ayesha seeking her help with her writ of manumission, having not yet paid off any of it.Ayesha said to her, "Go back to your masters. If they agree that I pay off your writ of manumission and that your loyalty (wala) belongs to me, I will do so."Barirah mentioned this to her masters, but they refused and said, "If she wishes to do this for you as a charitable act, she may, but your loyalty will belong to us."Ayesha mentioned this to the Messenger of Allah ﷺ, and he said to her, "Buy her and free her, for loyalty belongs only to the one who frees the slave."

Bukhari 2717

Sahih

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

عائشة رضي الله عنها

أخبرته أن بريرة جاءت عائشة تستعينها في كتابتها ولم تكن قضت من كتابتها شيئا قالت لها عائشة ارجعي إلى أهلك فإن أحبوا أن أقضي عنك كتابتك ويكون ولاؤك لي فعلت فذكرت ذلك بريرة إلى أهلها فأبوا وقالوا إن شاءت أن تحتسب عليك فلتفعل ويكون لنا ولاؤك فذكرت ذلك لرسول الله ﷺ فقال لها ابتاعي فأعتقي فإنما الولاء لمن أعتق

البخاري 2717صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Conditions
Chapter
Conditions in sales
Numbering
Darussalam 2717
Bukhari 2717