Ibn Mas'ud (may Allah be pleased with him) narrates: A man came to the Prophet (peace and blessings of Allah be upon him) and said, "O Messenger of Allah! What do you say about a person who loves some people but has not joined them (in companionship or in knowledge and deeds)?" The Prophet (peace and blessings of Allah be upon him) said: "A person will be with those whom he loves." Agreed upon.
Hadith Referenceمشكوة المصابيح / كتاب الآداب / 5008
Hadith Gradingالألبانی:مُتَّفَقٌ عَلَيْهِ | زبیر علی زئی:متفق عليه
Hadith Takhrij´تحقيق و تخريج: محدث العصر حافظ زبير على زئي رحمه الله` «متفق عليه، رواه البخاري (6169) و مسلم (2640/165)»