The Messenger of Allah ﷺ prohibited the sale or gifting of the right of patronage.
حدثنا محمد بن بشار حدثنا عبد الرحمن بن مهدي قال حدثنا سفيان وشعبة عن عبد الله بن دينار
أن رسول الله ﷺ نهى عن بيع الولاء وهبته
No references are available.
Reference (Grading): agreed upon [by Bukhari and Muslim]. Bukhari narrated it in The Book of Manumission, chapter, "Selling and Gifting Wala," no. 2535, from the hadith of Shubah, and no. 6756, from the hadith of Sufyan, and Muslim narrated it, no. 1506, from the hadith of Shubah and Sufyan Thawri, with this wording.