Malik related to me from Yahya ibn Said from Amra bint Abd ar- Rahman that Barira came asking the help of A'isha, umm al-muminin. A'isha said, "If your masters agree that I pay them your price in one lump sum and set you free I will do it." Barira mentioned that to her masters and they said, "No, not unless your wala' is ours." Yahya ibn Said added that Amra bint Abd ar-Rahman claimed that A'isha mentioned that to the Messenger of Allah ﷺ and the Messenger of Allah ﷺ said, "Buy her and set her free. The wala' only belongs to the one who sets free."
أَنْ أَصُبَّ لَهُمْ ثَمَنَكِ صَبَّةً وَاحِدَةً وَأُعْتِقَكِ فَعَلْتُ فَذَكَرَتْ ذَلِكَ بَرِيرَةُ لأَهْلِهَا فَقَالُوا لاَ إِلاَّ أَنْ يَكُونَ لَنَا وَلاَؤُكِ قَالَ يَحْيَى بْنُ سَعِيدٍ فَزَعَمَتْ عَمْرَةُ أَنَّ عَائِشَةَ ذَكَرَتْ ذَلِكَ لِرَسُولِ اللَّهِ ﷺ فَقَالَ رَسُولُ اللَّهِ ﷺ اشْتَرِيهَا وَأَعْتِقِيهَا فَإِنَّمَا الْوَلاَءُ لِمَنْ أَعْتَقَ