(8) باب إِذَا أَعْتَقَ فِي الْكَفَّارَةِ لِمَنْ يَكُونُ وَلاَؤُهُ
Narrated `Aisha:
that she intended to buy Barira (a slave girl) and her masters stipulated that they would have her Wala'. When `Aisha mentioned that to the Prophet (ﷺ) ; he said, "Buy her, for the Wala' is for the one who manumits."
Reference: Sahih al-Bukhari 6717
In-book reference: Book 84, Hadith 10
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 8, Book 79, Hadith 708