Language:
كتاب المناقب
61  
Virtues and Merits of the Prophet (pbuh) and his Companions
(6)
Chapter: The mention of the tribes of Aslam, Ghifar, Muzaina, Juhaina, and Ashja'
(6)
باب ذِكْرِ أَسْلَمَ وَغِفَارَ وَمُزَيْنَةَ وَجُهَيْنَةَ وَأَشْجَعَ‏.‏
Sahih al-Bukhari 3516

Narrated Abu Bakra:

Al-Aqra' bin Habis said to the Prophet (ﷺ) "Nobody gave you the pledge of allegiance but the robbers of the pilgrims (i.e. those who used to rob the pilgrims) from the tribes of Aslam, Ghifar, Muzaina." (Ibn Abi Ya'qub is in doubt whether Al-Aqra' added. 'And Juhaina.') The Prophet (ﷺ) said, "Don't you think that the tribes of Aslam, Ghifar, Muzaina (and also perhaps) Juhaina are better than the tribes of Bani Tamim, Bani Amir, Asad, and Ghatafan?" Somebody said, "They were unsuccessful and losers!" The Prophet said, "Yes, by Him in Whose Hands my life is, they (i.e. the former) are better than they (i.e. the latter).

حَدَّثَنِي مُحَمَّدُ بْنُ بَشَّارٍ، حَدَّثَنَا غُنْدَرٌ، حَدَّثَنَا شُعْبَةُ، عَنْ مُحَمَّدِ بْنِ أَبِي يَعْقُوبَ، قَالَ سَمِعْتُ عَبْدَ الرَّحْمَنِ بْنَ أَبِي بَكْرَةَ، عَنْ أَبِيهِ، أَنَّ الأَقْرَعَ بْنَ حَابِسٍ، قَالَ لِلنَّبِيِّ صلى الله عليه وسلم إِنَّمَا بَايَعَكَ سُرَّاقُ الْحَجِيجِ مِنْ أَسْلَمَ وَغِفَارَ وَمُزَيْنَةَ ـ وَأَحْسِبُهُ وَجُهَيْنَةَ ابْنُ أَبِي يَعْقُوبَ شَكَّ ـ قَالَ النَّبِيُّ صلى الله عليه وسلم ‏"‏ أَرَأَيْتَ إِنْ كَانَ أَسْلَمُ وَغِفَارُ وَمُزَيْنَةُ ـ وَأَحْسِبُهُ ـ وَجُهَيْنَةُ خَيْرًا مِنْ بَنِي تَمِيمٍ وَبَنِي عَامِرٍ وَأَسَدٍ وَغَطَفَانَ، خَابُوا وَخَسِرُوا ‏"‏‏.‏ قَالَ نَعَمْ‏.‏ قَالَ ‏"‏ وَالَّذِي نَفْسِي بِيَدِهِ، إِنَّهُمْ لَخَيْرٌ مِنْهُمْ ‏"‏‏.‏
Reference : Sahih al-Bukhari 3516
In-book reference : Book 61, Hadith 26
USC-MSA web (English) reference : Vol. 4, Book 56, Hadith 719
  (deprecated numbering scheme)