It is narrated about Sayyiduna Umar (may Allah be pleased with him) that he gave this ruling: an umm walad will not be sold, will not be given as a gift, will not be transferred through inheritance; her master will continue to benefit from her as long as he lives. When the master dies, the umm walad will be considered free.
Hadith Referenceسنن الدارقطني / كتاب المكاتب / 4246
Hadith Takhrij«أخرجه مالك فى ((الموطأ)) برقم: 1410، وسعيد بن منصور فى ((سننه)) برقم: 2053، 2054، والدارقطني فى ((سننه)) برقم: 4246، 4247، 4248، 4249، 4250،وأخرجه ابن أبى شيبة فى ((مصنفه)) برقم: 22011، 22016» «قال الدارقطني: والصواب عن ابن عمر عن عمر قوله يستمتع بها سيدها ما كان حيا فإذا مات فهي حرة لا تباع ولا توهب ولا تورث ، العلل الواردة في الأحاديث النبوية: (13 / 192)»