Sahih al-Bukhari, Book 85, Hadith 37 (In-Book)

Narrated Aisha: Allah's Messenger said, "The wala is for the one who gives the silver (pays the price) and does the favor (of manumission after paying the price).

حَدَّثَنَا ابْنُ سَلاَمٍ، أَخْبَرَنَا وَكِيعٌ، عَنْ سُفْيَانَ، عَنْ مَنْصُورٍ، عَنْ إِبْرَاهِيمَ، عَنِ الأَسْوَدِ، عَنْ عَائِشَةَ، قَالَتْ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ الْوَلاَءُ لِمَنْ أَعْطَى الْوَرِقَ، وَوَلِيَ النِّعْمَةَ ‏" ‏‏.‏

sunnah.com