Abdullah bin Umar reported,

Ayesha, Umm Muiminin, wanted to buy a Jariya in order to set her free. Her owners said, "We will sell her to you on the condition that her right of guardianship remains with us."She mentioned this to the Messenger of Allah ﷺ, who said, "Do not let that stop you, for the right of guardianship belongs only to the one who frees the slave."

Bukhari 2169

Sahih

حدثنا عبد الله بن يوسف أخبرنا مالك عن نافع

عن عبد الله بن عمر رضي الله عنهما

أن عائشة أم المؤمنين أرادت أن تشتري جارية فتعتقها فقال أهلها نبيعكها على أن ولاءها لنا فذكرت ذلك لرسول الله ﷺ فقال لا يمنعك ذلك فإنما الولاء لمن أعتق

البخاري 2169صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Sales
Chapter
If conditions are stipulated in a sale that are not lawful
Numbering
Darussalam 2169
Bukhari 2169