Ayesha reported,

I bought Barirah, but her owners stipulated that the right of guardianship would remain with them. I mentioned this to the Prophet ﷺ, and he said, "Free her, for the right of guardianship belongs to the one who pays the price."She said, "So I freed her. Then the Messenger of Allah ﷺ called her and gave her the choice regarding her husband."She said, "Even if he gave me such and such, I would not stay with him." So she chose herself, and her husband was a free man.

Nasai 3479

Sahih

أخبرنا قتيبة قال حدثنا جرير عن منصور عن إبراهيم عن الأسود

عن عائشة قالت

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

النسائي 3479صحيح
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 3479
Nasai 3479