Sayyiduna Abu Hurayrah (may Allah be pleased with him) narrates that the Prophet (peace and blessings be upon him) said: "Learn about your lineages so that through this you may maintain the ties of kinship."
Al-Tabarani recorded it in al-Mu'jam al-Awsat; its chain contains a narrator, Abu al-Asbat, who is da'if (weak).