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.
bayhaqi:14271Abū al-Ḥusayn ʿAlī b. Muḥammad b. ʿAbdullāh b. Bishrān> Abū al-Ḥasan ʿAlī b. Muḥammad al-Miṣrī > Ibn Abū Maryam > al-Firyābī > Sufyān > Ibn Abū Laylá > Nāfiʿ > Ibn ʿUmar > Lā Tukhayyar Idhā ʿAtaqat Illā

[Machine] "Do not choose when she is freed unless her husband is a slave."  

البيهقي:١٤٢٧١وَأَخْبَرَنَا أَبُو الْحُسَيْنِ عَلِيُّ بْنُ مُحَمَّدِ بْنِ عَبْدِ اللهِ بْنِ بِشْرَانَ بِبَغْدَادَ أنبأ أَبُو الْحَسَنِ عَلِيُّ بْنُ مُحَمَّدٍ الْمِصْرِيُّ ثنا ابْنُ أَبِي مَرْيَمَ ثنا الْفِرْيَابِيُّ ثنا سُفْيَانُ عَنِ ابْنِ أَبِي لَيْلَى عَنْ نَافِعٍ عَنِ ابْنِ عُمَرَ ؓ قَالَ

لَا تُخَيَّرُ إِذَا عَتَقَتْ إِلَّا أَنْ يَكُونَ زَوْجُهَا عَبْدًا