Sayyiduna Ibn Abbas (may Allah be pleased with them both) said 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."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 11470