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:21700Abū Bakr Muḥammad b. Ibrāhīm > Abū Naṣr al-ʿIrāqī > Sufyān b. Muḥammad > ʿAlī b. al-Ḥasan > ʿAbdullāh b. al-Walīd > Sufyān > Ayyūb al-Sakhtiyānī > Ibn Sīrīn > Shurayḥ Annh Suʾil > Bayʿ And Lad al-Mukātabah

[Machine] Her son is from her, if she frees, she frees, and if she enslaves, she enslaves.  

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

وَلَدُهَا مِنْهَا إِنْ عَتَقَتْ عَتَقَ وَإِنْ رَقَّتْ رَقَّ