It is narrated from a man of the tribe of Khath'am (a Companion, may Allah be pleased with him), who said: I came to the Prophet (peace and blessings be upon him) while he (peace and blessings be upon him) was sitting among a group of his Companions. I asked: Are you the one who says that you are the Messenger of Allah? He (peace and blessings be upon him) said: "Yes." I said: O Messenger of Allah, which deed is most beloved to Allah Almighty? He (peace and blessings be upon him) said: "Faith in Allah." I asked: O Messenger of Allah, then which after that? He (peace and blessings be upon him) said: "Then maintaining ties with relatives (silat al-rahim)." I said: O Messenger of Allah, which deed is most disliked and hateful to Allah Almighty? He (peace and blessings be upon him) said: "Associating partners with Allah." I asked: O Messenger of Allah, then which after that? He (peace and blessings be upon him) said: "Breaking ties of kinship and severing relations." I asked: O Messenger of Allah, then which deed after that is most hateful? He (peace and blessings be upon him) said: "Commanding evil and forbidding good (righteous deeds)."
Takhrij: Musnad Abi Ya'la: 2518, Musnad Ahmad: 15855, al-Mustadrak of al-Hakim: 1/51, Shu'ab al-Iman of al-Bayhaqi: 7100; Allamah al-Albani graded it sahih li-ghayrihi (authentic due to supporting reports).
Hadith Referenceالمطالب العالية بزوائد المسانيد الثمانية / كتاب البر والصلة / 2518
Hadith Gradingمحدثین:إسناده صحيح
Hadith Takhrij«حکم الحدیث المطالب العالیہ محققاً تنسیق د. سعد بن ناصر بن عبد العزيز الشَّثري- مکتبہ شاملہ :صحيح لغيره. » «أخرجه مجمع الزوائد ومنبع الفوائد برقم: 13453، 13454، وأخرجه إتحاف الخيرة المهرة بزوائد المسانيد العشرة برقم: 5»
It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that a man came to him, and he asked him: "Who are you?" The man invoked a distant kinship, so he (may Allah be pleased with him) spoke to him with great gentleness and kindness, and said that the Messenger of Allah (peace and blessings be upon him) said: "Learn your lineages and family trees so that through them you may maintain ties with your relatives; for there is no nearness or closeness left in kinship when it is severed, however close the relation may outwardly be, and no distance hinders it when it is kept joined, however distant the relation may be."
This hadith is sahih (authentic).
Hadith Referenceالمطالب العالية بزوائد المسانيد الثمانية / كتاب البر والصلة / 2519
Hadith Gradingمحدثین:إسناده صحيح
Hadith Takhrij«حکم الحدیث المطالب العالیہ محققاً تنسیق د. سعد بن ناصر بن عبد العزيز الشَّثري- مکتبہ شاملہ :قال ابن حجر: صَحِيحٌ . » «أخرجه المستدرك للحاكم برقم: 300، وأخرجه السنن الكبرى للبيهقي برقم: 20648، وأخرجه مسند الطيالسي برقم: 2880»