Hadith 3394
وَعَنِ ابْنِ عَبَّاسٍ عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «إِذَا وَلَدَتْ أَمَةُ الرَّجُلِ مِنْهُ فَهِيَ مُعْتَقَةٌ عَنْ دُبُرٍ مِنْهُ أَوْ بَعْدَهُ» . رَوَاهُ الدَّارِمِيُّ
Ibn ‘Abbas reported the Prophet as saying, “When a man’s slave-woman bears him a child she becomes free at his death.”* Darimi transmitted it. * The text has 'au durbur in minhu au ba'dahu’ indicating a doubt on the part of a transmitter as to which words were used. Both expressions amount to the same thing so it seems sufficient to give "at his death" in the translation above.