From 'Aishah that she wanted to purchase Barirah, but they (he owners) made the condition that they would retain the Wala'. So the Prophet ﷺ said: "Buy her, the Wala' is only for the one who gives the price, or for the one who grants the favor." [He said:] There is something on this topic from Ibn 'Umar. (Using translation from Tirmidhī 1256)
"اشْتَرِيها؛ فإِنَّما الولاءُ لِمَنْ أعْطى الثمَنَ، أو لمنْ وَلِيَ النَّعْمةَ" .