Hadith.3508 - Al-Hasan ibn Mahbub narrated from Wahb ibn Abd Rabbih, from Abu Abdullah (as) regarding a man who married his Umm al-Walad (a female slave who bore him a child) to his slave, and then the master died.
Imam (as) said
"She has no choice regarding the slave. She remains a slave belonging to the heirs."