Anas bin Malik reported,

A man was sitting with the Prophet ﷺ when another man passed by. He said, "Messenger of Allah, I truly love this man."The Prophet ﷺ asked him, "Have you told him?"He replied, "No."The Prophet ﷺ said, "Tell him."So he caught up with the man and said, "I love you for the sake of Allah."The other man replied, "May the One for whose sake you love me also love you."

Azami 13981

Sahih

عن أنس بن مالك

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

الأعظمي 13981صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Noble character
Section
If a man loves someone, let him tell him
Numbering
Jami al-Kamil 13981 (2nd edition)
Azami 13981