(38) بَابُ تَعَلَّمُوا مِنْ أَنْسَابِكُمْ مَا تَصِلُونَ بِهِ أَرْحَامَكُمْ
Ibn 'Abbas said, "Keep a record of your lines of descent so that youcan maintain ties of kinship. He will not make his relatives distant whenthey are close relatives, even if they live far away. He will not considerthem to be close relatives if they are distant ones, even if they live nearto him. Every time of kinship will come on the Day of Rising in front ofeach individual and testify on his behalf that he has maintained that tieof kinship if he did indeed maintain it. It will testify against him thathe cut if off if he cut it off."
Reference: Al-Adab Al-Mufrad 73
In-book reference: Book 2, Hadith 27
English translation: Book 2, Hadith 73