Jami` at-Tirmidhi #1979
Chapters on Righteousness And Maintaining Good Relations With Relatives 27:85
Abu Hurairah narrated that the Messenger of Allah said:
"Learn enough about your lineage to facilitate keeping your ties of kinship. For indeed keeping the ties of kinship encourages affection among the relatives, increases the wealth, and increases the lifespan."