“Umm Salamah freed me but stipulated that I should serve the Prophet (ﷺ) as long he lived.”
Sunan Ibn Majah Book 19, Hadith 15