It was narrated from that Safinah - Abu 'Abdur-Rahman-said :
"Umm Salamah freed me but stipulated that I should serve the Prophet (ﷺ) as long he lived." (ES)
English reference (ES): Vol. 3, Book 19, Hadith 2526 (ES)
Arabic reference (ES): Book 19, Hadith 2622 (ES)