Sahih Muslim – Hadith No : 6888

‘Abdullah reported that a person came to Allah’s Messenger (may peace be upon him) and said to Allah’s Messenger (may peace be upon him): 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 (may peace be upon him) said: A person would be along with one whom he loves.

Hadith In Arabic Text :

حدثنا عثمان بن أبي شيبة، وإسحاق بن إبراهيم، قال إسحاق أخبرنا وقال، عثمان حدثنا جرير، عن الأعمش، عن أبي وائل، عن عبد الله، قال جاء رجل إلى رسول الله صلى الله عليه وسلم فقال يا رسول الله كيف ترى في رجل أحب قوما ولما يلحق بهم قال رسول الله صلى الله عليه وسلم ‏”‏ المرء مع من أحب ‏”‏ ‏.‏

Chapter : The Book of Virtue; Good Manners and Joining of the Ties of Relationship – كتاب البر والصلة والآداب