Abdullah bin Masud reported,

A man came to the Messenger of Allah ﷺ and asked, "Messenger of Allah, what do you say about a man who loves a people but has not yet joined them in deeds?"The Messenger of Allah ﷺ replied, "A person will be with those he loves."

Azami 13989

Sahih

عن عبد الله بن مسعود، قال

جاء رجل إلى رسول الله ﷺ فقال: يا رسول الله كيف تقول في رجل أحب قوما ولم يلحق بهم؟ فقال رسول الله ﷺ: المرء مع من أحب.

الأعظمي 13989صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Noble character
Section
One is with those whom he loves
Numbering
Jami al-Kamil 13989 (2nd edition)
Azami 13989