كتاب المغازى
64  
Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi)
(12)
Chapter
(12)
باب
Sahih al-Bukhari 4000

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)

حَدَّثَنَا يَحْيَى بْنُ بُكَيْرٍ، حَدَّثَنَا اللَّيْثُ، عَنْ عُقَيْلٍ، عَنِ ابْنِ شِهَابٍ، أَخْبَرَنِي عُرْوَةُ بْنُ الزُّبَيْرِ، عَنْ عَائِشَةَ ـ رضى الله عنها ـ زَوْجِ النَّبِيِّ صلى الله عليه وسلم أَنَّ أَبَا حُذَيْفَةَ وَكَانَ مِمَّنْ شَهِدَ بَدْرًا مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم تَبَنَّى سَالِمًا، وَأَنْكَحَهُ بِنْتَ أَخِيهِ هِنْدَ بِنْتَ الْوَلِيدِ بْنِ عُتْبَةَ ـ وَهْوَ مَوْلًى لاِمْرَأَةٍ مِنَ الأَنْصَارِ ـ كَمَا تَبَنَّى رَسُولُ اللَّهِ صلى الله عليه وسلم زَيْدًا، وَكَانَ مَنْ تَبَنَّى رَجُلاً فِي الْجَاهِلِيَّةِ دَعَاهُ النَّاسُ إِلَيْهِ، وَوَرِثَ مِنْ مِيرَاثِهِ حَتَّى أَنْزَلَ اللَّهُ تَعَالَى ‏{‏ادْعُوهُمْ لآبَائِهِمْ‏}‏ فَجَاءَتْ سَهْلَةُ النَّبِيَّ صلى الله عليه وسلم، فَذَكَرَ الْحَدِيثَ‏.‏
Reference : Sahih al-Bukhari 4000
In-book reference : Book 64, Hadith 51
USC-MSA web (English) reference : Vol. 5, Book 59, Hadith 335
  (deprecated numbering scheme)