Bulugh al-Maram, Book 15, Hadith 1429 (In-Book)

Ibn 'Umar (RAA) narrated that The Messenger of Allah said: “The Wala’ (of a manumitted slave) is considered as one’s lineage, not to be sold or donated (refer to hadith no. 984).” Related by Ash-Shafi’i. Ibn Hibban and Al-Hakim graded it as Sahih. It is also related by Al-Bukhari and Muslim with different wording

وَعَنِ ابْنِ عُمَرَ رَضِيَ اَللَّهُ عَنْهُمَا قَالَ: قَالَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-{ " اَلْوَلَاءُ لُحْمَةٌ كَلُحْمَةِ اَلنَّسَبِ, لَا يُبَاعُ وَلَا يُوهَبُ" } رَوَاهُ اَلشَّافِعِيُّ, وَصَحَّحَهُ اِبْنُ حِبَّانَ, وَالْحَاكِم ُ 1‏ وَأَصْلُهُ فِي "اَلصَّحِيحَيْنِ" بِغَيْرِ هَذَا اَللَّفْظ ِ 2‏.‏ ‏1 ‏- تقدم تخريجه رقم ( 956 )‏.‏‏2 ‏- تقدم برقم ( 796 )‏.‏

sunnah.com

also referenced under: Book 15, Hadith 1473 (English)