Sahih al-Bukhari, Volume 5, Book 59, Hadith 335 (USC-MSA) ⓘ
Narrated `Aisha: (the wife of the Prophet) Abu Hudhaifa, one of those who fought the battle of Badr, with Allah's Apostle adopted Salim as his son and married his niece Hind bint Al-Wahd bin `Utba to him' and Salim was a freed slave of an Ansari woman. Allah's Messenger also adopted Zaid as his son. In the Prelslamic period of ignorance the custom was that, if one adopted a son, the people would call him by the name of the adopted-father whom he would inherit as well, till Allah revealed: "Call them (adopted sons) By (the names of) their fathers." (33.5)
حَدَّثَنَا يَحْيَى بْنُ بُكَيْرٍ، حَدَّثَنَا اللَّيْثُ، عَنْ عُقَيْلٍ، عَنِ ابْنِ شِهَابٍ، أَخْبَرَنِي عُرْوَةُ بْنُ الزُّبَيْرِ، عَنْ عَائِشَةَ ـ رضى الله عنها ـ زَوْجِ النَّبِيِّ صلى الله عليه وسلم أَنَّ أَبَا حُذَيْفَةَ وَكَانَ مِمَّنْ شَهِدَ بَدْرًا مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم تَبَنَّى سَالِمًا، وَأَنْكَحَهُ بِنْتَ أَخِيهِ هِنْدَ بِنْتَ الْوَلِيدِ بْنِ عُتْبَةَ ـ وَهْوَ مَوْلًى لاِمْرَأَةٍ مِنَ الأَنْصَارِ ـ كَمَا تَبَنَّى رَسُولُ اللَّهِ صلى الله عليه وسلم زَيْدًا، وَكَانَ مَنْ تَبَنَّى رَجُلاً فِي الْجَاهِلِيَّةِ دَعَاهُ النَّاسُ إِلَيْهِ، وَوَرِثَ مِنْ مِيرَاثِهِ حَتَّى أَنْزَلَ اللَّهُ تَعَالَى {ادْعُوهُمْ لآبَائِهِمْ} فَجَاءَتْ سَهْلَةُ النَّبِيَّ صلى الله عليه وسلم، فَذَكَرَ الْحَدِيثَ.
also referenced under: Book 64, Hadith 51 (In-Book) & Hadith 4000 (DarusSalam)