Sunan Abi Dawud, Hadith 1685

Anas said When the verse “You will never attain righteousness until you give freely of what you love" came down, Abu Talhah said Messenger of Allah, I think our Lord asks us for our property. I call you as witness that I dedicate my land at Ariha ‘to Him’. The Messenger of Allah said to him Divide it among your nearest relatives. So he divided it among Hassan bin Thabit and Ubayy bin Ka’b. Abu Dawud said I have been gold by an Ansari Muhammad bin ‘Abdallah that the name of Abu Talhah is Zaid bin Sahal bin al-Aswad bin Haram bin ‘Amar bin Zaid bin Manat bin ‘Adi bin ‘Amr bin Malik bin al-Najjar; and Hassan bin Tabit is son of al-Mundhir in al-Haram. Thus both of them (Abu Talhah and Hassan) have their common link in Haram who is the third great grandfather. Ubbay bin Ka’b is son of Qais bin ‘Atik bin Zaid bin Mu’awiyah bin ‘Amr bin Malik bin al-Najjar. Thus the common tie between Hassan, Abu Talhah and Ubbay is ‘Amr (bin Malik). The Ansari said between Ubbay and Abi Talhah there are six great grandfathers.

حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ، حَدَّثَنَا حَمَّادٌ، عَنْ ثَابِتٍ، عَنْ أَنَسٍ، قَالَ لَمَّا نَزَلَتْ ‏{‏ لَنْ تَنَالُوا الْبِرَّ حَتَّى تُنْفِقُوا مِمَّا تُحِبُّونَ ‏}‏ قَالَ أَبُو طَلْحَةَ يَا رَسُولَ اللَّهِ أَرَى رَبَّنَا يَسْأَلُنَا مِنْ أَمْوَالِنَا فَإِنِّي أُشْهِدُكَ أَنِّي قَدْ جَعَلْتُ أَرْضِي بِأَرِيحَاءَ لَهُ فَقَالَ لَهُ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ اجْعَلْهَا فِي قَرَابَتِكَ ‏"‏ ‏.‏ فَقَسَمَهَا بَيْنَ حَسَّانَ بْنِ ثَابِتٍ وَأُبَىِّ بْنِ كَعْبٍ ‏.‏ قَالَ أَبُو دَاوُدَ بَلَغَنِي عَنِ الأَنْصَارِيِّ مُحَمَّدِ بْنِ عَبْدِ اللَّهِ قَالَ أَبُو طَلْحَةَ زَيْدُ بْنُ سَهْلِ بْنِ الأَسْوَدِ بْنِ حَرَامِ بْنِ عَمْرِو بْنِ زَيْدِ مَنَاةَ بْنِ عَدِيِّ بْنِ عَمْرِو بْنِ مَالِكِ بْنِ النَّجَّارِ وَحَسَّانُ بْنُ ثَابِتِ بْنِ الْمُنْذِرِ بْنِ حَرَامٍ يَجْتَمِعَانِ إِلَى حَرَامٍ وَهُوَ الأَبُ الثَّالِثُ وَأُبَىُّ بْنُ كَعْبِ بْنِ قَيْسِ بْنِ عَتِيكِ بْنِ زَيْدِ بْنِ مُعَاوِيَةَ بْنِ عَمْرِو بْنِ مَالِكِ بْنِ النَّجَّارِ فَعَمْرٌو يَجْمَعُ حَسَّانَ وَأَبَا طَلْحَةَ وَأُبَيًّا ‏.‏ قَالَ الأَنْصَارِيُّ بَيْنَ أُبَىٍّ وَأَبِي طَلْحَةَ سِتَّةُ آبَاءٍ ‏.‏

sunnah.com

also referenced under: Hadith 1689 (DarusSalam)