It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that Sayyidah Aishah (may Allah be pleased with her) wanted to buy a slave girl in order to free her. Her owners said, "We will sell her to you on the condition that her wala' (right of inheritance as patron) will be ours." Sayyidah Aishah (may Allah be pleased with her) mentioned this to the Messenger of Allah (peace and blessings be upon him), and the Prophet (peace and blessings be upon him) said: "Do not let this condition stop you, for the wala' belongs only to the one who frees."
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 5929