Bulugh al-Maram 1450
كِتَابُ الْعِتْقِ
وَعَنِ ابْنِ عَبَّاسٍ قَالَ: قَالَ رَسُولُ اللَّهِ - صلى الله عليه وسلم: «أَيُّمَا أَمَةٍ وَلَدَتْ مِنْ سَيِّدِهَا, فَهِيَ حُرَّةٌ بَعْدَ مَوْتِهِ». أَخْرَجَهُ ابْنُ مَاجَهْ, وَالْحَاكِمُ بِإِسْنَادٍ ضَعِيفٍ. وَرَجَّحَ جَمَاعَةٌ وَقْفَهُ عَلَى عُمَرَ.
From Ibn ʿAbbas, who said: The Messenger of Allah ﷺ said: "Any slave woman who bears a child to her master is free after his death." Ibn Majah and al-Hakim reported it with a weak chain, and a group considered it more likely to be a saying of ʿUmar.