(50) باب الْمَرْءُ مَعَ مَنْ أَحَبَّ
'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 2640 a
In-book reference: Book 45, Hadith 213
USC-MSA web (English) reference(deprecated numbering scheme): Book 32, Hadith 6385