صحيح البخاري Sahih Bukhari كتاب الفرائض The Book of Al-Farad (The Laws of Inheritance)
بَابُ الْوَلاَءُ لِمَنْ أَعْتَقَ، وَمِيرَاثُ اللَّقِيطِ:

(19) Chapter. Al-Wala is for the manumitter. (Regarding) the inheritance of Al-Laqit (a small child or an insane person, who has nobody to be responsible for him).

2 hadith
Hadith 6751
حَدَّثَنَا حَفْصُ بْنُ عُمَرَ ، حَدَّثَنَا شُعْبَةُ ، عَنْ الْحَكَمِ ، عَنْ إِبْرَاهِيمَ ، عَنْ الْأَسْوَدِ ، عَنْ عَائِشَةَ ، قَالَتْ : اشْتَرَيْتُ بَرِيرَةَ ، فَقَالَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ : " اشْتَرِيهَا فَإِنَّ الْوَلَاءَ لِمَنْ أَعْتَقَ ، وَأُهْدِيَ لَهَا شَاةٌ , فَقَالَ : هُوَ لَهَا صَدَقَةٌ وَلَنَا هَدِيَّةٌ " ، قَالَ الْحَكَمُ : وَكَانَ زَوْجُهَا حُرًّا وَقَوْلُ الْحَكَمِ : مُرْسَلٌ ، وَقَالَ ابْنُ عَبَّاسٍ : رَأَيْتُهُ عَبْدًا .
Narrated `Aisha: I bought Barira (a female slave). The Prophet said (to me), "Buy her as the Wala' is for the manumitted." Once she was given a sheep (in charity). The Prophet said, "It (the sheep) is a charitable gift for her (Barira) and a gift for us." Al-Hakam said, "Barira's husband was a free man." Ibn `Abbas said, 'When I saw him, he was a slave."
Hadith Reference Sahih Bukhari / The Book of Al-Farad (The Laws of Inheritance) / Hadith: 6751
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة
Hadith 6752
حَدَّثَنَا إِسْمَاعِيلُ بْنُ عَبْدِ اللَّهِ ، قَالَ حَدَّثَنِي مَالِكٌ ، عَنْ نَافِعٍ ، عَنْ ابْنِ عُمَرَ ، عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ , قَالَ : " إِنَّمَا الْوَلَاءُ لِمَنْ أَعْتَقَ " .
Narrated Ibn `Umar: The Prophet said, "The Wala' is for the manumitted (of the slave).
Hadith Reference Sahih Bukhari / The Book of Al-Farad (The Laws of Inheritance) / Hadith: 6752
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة