Sahih Muslim #6718 · The Book of Virtue, Enjoining Good Manners, and Joining of the Ties of Kinship

Sahih MuslimAbdullah reported that a person came to Allah's Messenger
Sahih Muslim · Book 45 · The Book of Virtue, Enjoining Good Manners, and Joining of the Ties of Kinship
Sahih Muslim · كتاب 45 · كتاب البر والصلة والآداب
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 6718In-book reference : Book 45, Hadith 213