Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ibnmajah:2074Abū Bakr b. Abū Shaybah > Ḥafṣ b. Ghiyāth > al-Aʿmash > Ibrāhīm > al-Aswad b. Yazīd > ʿĀʾishah

she freed Barirah and the Messenger of Allah ﷺ gave her the choice, and she (Barirah) had a free husband.  

ابن ماجة:٢٠٧٤حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ حَدَّثَنَا حَفْصُ بْنُ غِيَاثٍ عَنِ الأَعْمَشِ عَنْ إِبْرَاهِيمَ عَنِ الأَسْوَدِ بْنِ يَزِيدَ عَنْ عَائِشَةَ

أَنَّهَا أَعْتَقَتْ بَرِيرَةَ فَخَيَّرَهَا رَسُولُ اللَّهِ ﷺ وَكَانَ لَهَا زَوْجٌ حُرٌّ