كتاب البر والصلة والآداب
45  
The Book of Virtue, Enjoining Good Manners, and Joining of the Ties of Kinship
(50)
Chapter: A Man Will Be With Those Whom He Loves
(50)
باب الْمَرْءُ مَعَ مَنْ أَحَبَّ ‏ ‏
Sahih Muslim 2640 a

'Abdullah reported that a person came to Allah's Messenger (ﷺ) and said to Allah's Messenger (ﷺ):

What is your opinion about the person who loves the people but his (acts or deeds are not identical to theirs)? Thereupon Allah's Messenger (ﷺ) said: A person would be along with one whom he loves.
حَدَّثَنَا عُثْمَانُ بْنُ أَبِي شَيْبَةَ، وَإِسْحَاقُ بْنُ إِبْرَاهِيمَ، قَالَ إِسْحَاقُ أَخْبَرَنَا وَقَالَ، عُثْمَانُ حَدَّثَنَا جَرِيرٌ، عَنِ الأَعْمَشِ، عَنْ أَبِي وَائِلٍ، عَنْ عَبْدِ اللَّهِ، قَالَ جَاءَ رَجُلٌ إِلَى رَسُولِ اللَّهِ صلى الله عليه وسلم فَقَالَ يَا رَسُولَ اللَّهِ كَيْفَ تَرَى فِي رَجُلٍ أَحَبَّ قَوْمًا وَلَمَّا يَلْحَقْ بِهِمْ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ الْمَرْءُ مَعَ مَنْ أَحَبَّ ‏"‏ ‏.‏
Reference : Sahih Muslim 2640a
In-book reference : Book 45, Hadith 213
USC-MSA web (English) reference : Book 32, Hadith 6385
  (deprecated numbering scheme)