It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: Learn your lineage to the extent that you can maintain the ties of kinship, because maintaining the ties of kinship increases love among relatives, increases wealth, and wards off calamities.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 8868