It was narrated from Ibn`Abbas that the Messenger of Allah (ﷺ) said:
"Any man whose slave won an bears him a child, she will be free after he dies." (ID)
English reference (ID): Vol. 3, Book 19, Hadith 2515 (ID)
Arabic reference (ID): Book 19, Hadith 2611 (ID)