Al-Aswad narrates from Sayyidah Aishah (may Allah be pleased with her) that Sayyidah Aishah (may Allah be pleased with her) wanted to buy Barirah and free her, but her people stipulated the wala'. Sayyidah Aishah (may Allah be pleased with her) mentioned this to the Prophet (peace and blessings be upon him), and the Messenger of Allah (peace and blessings be upon him) said: "Buy her, for the wala' belongs to the one who frees."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب المكاتب / 21735