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:21787Abū Naṣr b. Qatādah > Abū Manṣūr al-Naḍrawī > Aḥmad b. Najdah > Saʿīd b. Manṣūr > Sufyān > al-Ḥakam b. Abān > Suʾil ʿIkrimah > Ummahāt al-Awlād > Hun Aḥrār > Lah Biʾī Shayʾ Taqūluh > Bi-al-Qurān > Bimādhā from al-Qurān

[Machine] The saying of Allah the Exalted, "Obey Allah and obey the Messenger and those in authority among you." [An-Nisa: 59] And Umar was among those in authority, he said, "Even if she gives birth out of wedlock." And it is narrated from Al-Hakam ibn Aban from Ikrimah from Ibn Abbas that the Prophet ﷺ said, "The child of the mistress is free, even if he is illegitimate." And this hadith is weak. The hadith of Sa'id ibn Masruq Ath-Thawri from Ikrimah from Umar and the hadith of Sufyan from Al-Hakam from Ikrimah from Umar. And Allah knows best. It is possible that the narration of the story of Maria has a foundation, and Allah knows best.  

البيهقي:٢١٧٨٧وَأَخْبَرَنَا أَبُو نَصْرِ بْنُ قَتَادَةَ أنبأ أَبُو مَنْصُورٍ النَّضْرَوِيُّ ثنا أَحْمَدُ بْنُ نَجْدَةَ ثنا سَعِيدُ بْنُ مَنْصُورٍ ثنا سُفْيَانُ حَدَّثَنِي الْحَكَمُ بْنُ أَبَانَ قَالَ سُئِلَ عِكْرِمَةُ عَنْ أُمَّهَاتِ الْأَوْلَادِ قَالَ هُنَّ أَحْرَارٌ قَالُوا لَهُ بِأِيِّ شَيْءٍ تَقُولُهُ؟ قَالَ بِالْقُرْآنِ قَالُوا بِمَاذَا مِنَ الْقُرْآنِ؟ قَالَ

قَوْلُ اللهِ تَعَالَى {أَطِيعُوا اللهَ وَأَطِيعُوا الرَّسُولَ وَأُولِي الْأَمْرِ مِنْكُمْ} [النساء 59] وَكَانَ عُمَرُ ؓ مِنْ أُولِي الْأَمْرِ قَالَ عَتَقَتْ وَإِنْ كَانَ سَقْطًا وَرُوِي عَنِ الْحَكَمِ بْنِ أَبَانَ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ ؓ عَنِ النَّبِيِّ ﷺ أُمُّ الْوَلَدِ حُرَّةٌ وَإِنْ كَانَ سَقْطًا وَهُوَ ضَعِيفٌ الصَّحِيحُ حَدِيثُ سَعِيدِ بْنِ مَسْرُوقٍ الثَّوْرِيِّ عَنْ عِكْرِمَةَ عَنْ عُمَرَ وَحَدِيثُ سُفْيَانَ عَنِ الْحَكَمِ عَنْ عِكْرِمَةَ عَنْ عُمَرَ وَاللهُ أَعْلَمُ وَقَدْ يُحْتَمَلُ أَنْ يَكُونَ لِرِوَايَةِ قِصَّةِ مَارِيَةَ أَصْلٌ وَاللهُ أَعْلَمُ