Translation
(85) Laws of Inheritance (Al-Faraa'id)
كتاب الفرائض
(19) Chapter: Al-Wala’ is for the manumitter
(19) باب الْوَلاَءُ لِمَنْ أَعْتَقَ، وَمِيرَاثُ اللَّقِيطِ
Sahih al-Bukhari 6752 

Narrated Ibn `Umar:

The Prophet (ﷺ) said, "The Wala' is for the manumitted (of the slave).

حَدَّثَنَا إِسْمَاعِيلُ بْنُ عَبْدِ اللَّهِ، قَالَ حَدَّثَنِي مَالِكٌ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ إِنَّمَا الْوَلاَءُ لِمَنْ أَعْتَقَ ‏"‏‏.‏
Reference : Sahih al-Bukhari 6752
In-book reference : Book 85, Hadith 29
USC-MSA web (English) reference : Vol. 8, Book 80, Hadith 744
  (deprecated numbering scheme)