Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:21432Abū ʿAbdullāh al-Ḥāfiẓ > Abū Bakr b. Isḥāq > ʿAlī b. ʿAbd al-ʿAzīz > Abū al-Walīd > Shuʿbah > ʿAbdullāh b. Dīnār > Ibn ʿUmar

[Machine] The Messenger of Allah ﷺ forbade the sale of loyalty and giving it as a gift.  

البيهقي:٢١٤٣٢أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أنبأ أَبُو بَكْرِ بْنُ إِسْحَاقَ أنبأ عَلِيُّ بْنُ عَبْدِ الْعَزِيزِ ثنا أَبُو الْوَلِيدِ ثنا شُعْبَةُ عَنْ عَبْدِ اللهِ بْنِ دِينَارٍ قَالَ سَمِعْتُ ابْنَ عُمَرَ قَالَ

نَهَى رَسُولُ اللهِ ﷺ عَنْ بَيْعِ الْوَلَاءِ وَعَنْ هِبَتِهِ  

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنْ أَبِي الْوَلِيدِ وَأَخْرَجَهُ مُسْلِمٌ مِنْ وَجْهٍ آخَرَ عَنْ شُعْبَةَ وَكَذَلِكَ رَوَاهُ عُبَيْدُ اللهِ بْنُ عَمْرٍو وَإِسْمَاعِيلُ بْنُ جَعْفَرٍ وَسُلَيْمَانُ بْنُ بِلَالٍ وَالضَّحَّاكُ بْنُ عُثْمَانَ وَغَيْرُهُمْ عَنْ عَبْدِ اللهِ بْنِ دِينَارٍ

See similar narrations below:

Collected by Mālik
malik:38-21Mālik > ʿAbdullāh b. Dīnār > ʿAbdullāh b. ʿUmar

Malik related to me from Abdullah ibn Dinar from Abdullah ibn Umar that the Messenger of Allah ﷺ forbade selling or giving away the wala'.  

مالك:٣٨-٢١وَحَدَّثَنِي مَالِكٌ عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ

أَنَّ رَسُولَ اللَّهِ ﷺ نَهَى عَنْ بَيْعِ الْوَلاَءِ وَعَنْ هِبَتِهِ