(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. Messenger of Allah ﷺ 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)
عَنْ عَائِشَةَ ؓ زَوْجِ النَّبِيِّ ﷺ أَنَّ أَبَا حُذَيْفَةَ وَكَانَ مِمَّنْ شَهِدَ بَدْرًا مَعَ رَسُولِ اللَّهِ ﷺ تَبَنَّى سَالِمًا وَأَنْكَحَهُ بِنْتَ أَخِيهِ هِنْدَ بِنْتَ الْوَلِيدِ بْنِ عُتْبَةَ وَهْوَ مَوْلًى لاِمْرَأَةٍ مِنَ الأَنْصَارِ كَمَا تَبَنَّى رَسُولُ اللَّهِ ﷺ زَيْدًا وَكَانَ مَنْ تَبَنَّى رَجُلاً فِي الْجَاهِلِيَّةِ دَعَاهُ النَّاسُ إِلَيْهِ وَوَرِثَ مِنْ مِيرَاثِهِ حَتَّى أَنْزَلَ اللَّهُ تَعَالَى {ادْعُوهُمْ لآبَائِهِمْ} فَجَاءَتْ سَهْلَةُ النَّبِيَّ ﷺ فَذَكَرَ الْحَدِيثَ