It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with them) that the Messenger of Allah (peace and blessings be upon him) forbade selling or gifting the right of wala.
Hadith Referenceالسنن المأثورة / باب في أكل لحوم الخيل والبغال والحمير / 579
Hadith Takhrijسنن نسائی، البیوع، باب بیع الولاء رقم: 4658، وقال الالبانی: صحیح، مؤطا امام مالک، العتق، باب مصیر الولاء لمن اعتق، رقم: 20۔