Sayyiduna Ibn Abbas (may Allah be pleased with them both) said that any slave woman who becomes Umm Walad (the mother of her master's child) becomes free after his master's death.
Hadith Referenceمسند احمد / ومن مسند بني هاشم / 2759
Hadith Gradingحکم دارالسلام:حسن، وهذا إسناد ضعيف، شريك سيئ الحفظ، لكنه توبع وحسين بن عبدالله ضعيف