Safina said:
I was a slave of Umm Salama, and she said, “I shall emancipate you, but I stipulate that you must serve God’s Messenger as long as you live” I replied, “Even if you do not make a stipulation with me I shall not leave God’s Messenger as long as I live”. She then emancipated me and made the stipulation with me.
Abu Dawud and Ibn Majah transmitted it.