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:21440Abū ʿAbdullāh al-Ḥāfiẓ > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > Yaḥyá b. Abū Ṭālib > Yazīd b. Hārūn > Abū al-ʿAlāʾ Ayyūb b. Miskīn > Qatādah > In ʿUmar b. al-Khaṭṭāb > In al-Walāʾ Kālnnasab Lā Yubāʿ And Lā Yūhab Warawāh Ḥammād > Dāwud Waqatādah > Saʿīd b. al-Musayyib > ʿUmar b. al-Khaṭṭāb

[Machine] Indeed, loyalty is like lineage. It cannot be bought or given as a gift. It was narrated by Hammad from Dawud and Qatadah from Sa'id ibn al-Musayyib that Umar ibn al-Khattab mentioned it.  

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

إِنَّ الْوَلَاءَ كَالنَّسَبِ لَا يُبَاعُ وَلَا يُوهَبُ وَرَوَاهُ حَمَّادٌ عَنْ دَاوُدَ وَقَتَادَةَ عَنْ سَعِيدِ بْنِ الْمُسَيِّبِ أَنَّ عُمَرَ بْنَ الْخَطَّابِ ؓ قَالَ فَذَكَرَهُ