Ayesha reported,

She wanted to buy Barirah, but the sellers stipulated that the right of clientage would remain with them. She mentioned this to the Prophet ﷺ, who said, "Buy her and free her, for the right of clientage belongs to the one who frees the slave."Some meat was brought, and it was said, "This is from what was given in charity to Barirah."He said, "It is charity for her and a gift for us."The Messenger of Allah ﷺ gave her the choice regarding her marriage, and her husband was a free man.

Nasai 3480

Sahih

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

عن عائشة

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

النسائي 3480صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Divorce
Chapter
Choice of a slave woman who is freed while her husband is a free man
Numbering
Darussalam 3480
Nasai 3480