From sahih muslim chapter no 1:
Hadith No: 5 Narrated/Authority of
Muhammad bin Abdullah bin Numair told us this hadith. He heard it from Muhammad bin Bishr, who heard it from Abd Hayyan al-Taymi. In this narration, instead of saying “when a slave-girl gives birth to her master,” it says “when a slave-girl gives birth to her own master.”