It was narrated from 'Aishah the wife of the Prophet, and Umm Salamah the wife of the Prophet that Abu Hudhaifah bin 'Utbah bin Rabi'ah bin Abd Shams --who was one of those who had been present at Badr with the Messenger of Allah-- adopted Salim --who was the freed slave of an Ansari woman-- as the Messenger of Allah had adopted Zaid bin Harithah. Abu Hudhaifah bin 'Utbah married Salim to his brother's daughter Hind bint Al-Walid bin 'Utbah bin Rabi'ah. Hind bint Al-Walid bin 'Utbah was one of the first Muhajir women, and at that time she was one of the best single women of the Quraish. When Allah, the Mighty and Sublime, revealed the following concerning Zaid bin Harithah: "Call them by (the names of) their fathers, that is more just with Allah. But if you know not their fathers' (names, call them) your brothers in Faith and Mawalikum (your freed slaves).' Each of them went back to being called after his father, and if a person's father was unknown, he was named after his former masters. (Using translation from Nasāʾī 3224)
عَنْ عَائِشَةَ زَوْجِ النَّبِيِّ ﷺ وَأَمِّ سَلَمَةَ زَوْجِ النَّبِيِّ ﷺ أَنَّ أَبَا حُذَيْفَةَ بْنَ عُتْبَةَ بْنِ رَبِيعَةَ بْنِ عَبْدِ شَمْسٍ وَكَانَ مِمَّنْ شَهِدَ بَدْرًا مَعَ رَسُولِ اللهِ ﷺ تَبَنَّى سَالِمًا وَهُوَ مَوْلًى لِامْرَأَةٍ مِنَ الْأَنْصَارِ كَمَا تَبَنَّى رَسُولُ اللهِ ﷺ زَيْدَ بْنَ حَارِثَةَ وَأَنْكَحَ أَبُو حُذَيْفَةَ بْنُ رَبِيعَةَ سَالِمًا ابْنَةَ أَخِيهِ هِنْدَ بِنْتَ الْوَلِيدِ بْنِ عُتْبَةَ بْنِ رَبِيعَةَ وَكَانَتْ هِنْدُ بِنْتُ الْوَلِيدِ بْنِ رَبِيعَةَ مِنَ الْمُهَاجِرَاتِ الْأُوَلِ وَهِيَ يَوْمَئِذٍ مِنْ أَفْضَلِ أَيَامَى قُرَيْشٍ فَلَمَّا أَنْزَلَ اللهُ فِي زَيْدِ بْنِ حَارِثَةَ {ادْعُوهُمْ لِآبَائِهِمْ هُوَ أَقْسَطُ عِنْدَ اللهِ} [الأحزاب 5] رَدَّ كُلَّ أَحَدٍ يَنْتَمِي مِنْ أُولَئِكَ إِلَى أَبِيهِ فَإِنْ لَمْ يَكُنْ يُعْلَمُ أَبُوهُ رُدَّ إِلَى مَوَالِيهِ