It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Any slave-woman who bears a child to her master is free after his death, except in the case where he (the master) frees her before his death." Imam Abu Ya'la al-Mawsili recorded it with a da'if (weak) chain, because one of its narrators, Husayn bin Abdullah, is weak; and through this same route Muhammad bin Yahya bin Abi Umar and Ibn Majah also transmitted it, but their narration does not contain the words "except in the case where he frees her before his death."
Hadith Takhrij«رواه أبو يعلى الموصلي بسند ضعيف؛ لضعف حسين بن عبد الله، ومن هذا الوجه رواه محمد بن يحيى بن أبي عمر ، وابن ماجه دون قوله: " إلا أن يعتقها قبل موته "» «أخرجه سنن ابن ماجه برقم: 2515، وأخرجه مسند أحمد برقم: 2905، وأخرجه سنن الدارمي برقم: 2574»