Language:
كتاب الأدب
78  
Good Manners and Form (Al-Adab)
(96)
Chapter: The signs of loving Allah
(96)
بَابُ عَلاَمَةِ حُبِّ اللَّهِ عَزَّ وَجَلَّ
Sahih al-Bukhari 6170

Narrated Abu Musa:

It was said to the Prophet; , "A man may love some people but he cannot catch up with their good deeds?" The Prophet (ﷺ) said, "Everyone will be with those whom he loves."

حَدَّثَنَا أَبُو نُعَيْمٍ، حَدَّثَنَا سُفْيَانُ، عَنِ الأَعْمَشِ، عَنْ أَبِي وَائِلٍ، عَنْ أَبِي مُوسَى، قَالَ قِيلَ لِلنَّبِيِّ صلى الله عليه وسلم الرَّجُلُ يُحِبُّ الْقَوْمَ وَلَمَّا يَلْحَقْ بِهِمْ قَالَ ‏ "‏ الْمَرْءُ مَعَ مَنْ أَحَبَّ ‏"‏‏.‏ تَابَعَهُ أَبُو مُعَاوِيَةَ وَمُحَمَّدُ بْنُ عُبَيْدٍ‏.‏
Reference : Sahih al-Bukhari 6170
In-book reference : Book 78, Hadith 196
USC-MSA web (English) reference : Vol. 8, Book 73, Hadith 191
  (deprecated numbering scheme)