It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that he said: "I was sitting with the Messenger of Allah (peace and blessings be upon him) when a man passed by there, and a man present in the gathering said: O Messenger of Allah! I truly love this man. He (peace and blessings be upon him) asked: 'Have you informed him of this?' He said: No. So he (peace and blessings be upon him) said: 'Get up and tell him.' The man went to him and said: O so-and-so! By Allah, I truly love you for the sake of Allah Almighty. He replied: 'May the One for whose sake you love me love you.'"
Imam Ahmad (may Allah have mercy on him) narrated it like this in his Musnad.
Imam al-Daraqutni (may Allah have mercy on him) says: "Husayn bin Waqid (may Allah have mercy on him) and Abdullah bin al-Zubayr al-Bahili (may Allah have mercy on him) narrated it like this.
Whereas Hammad bin Salamah (may Allah have mercy on him) narrated it from Thabit (may Allah have mercy on him), he from Habib bin Subay'ah (may Allah have mercy on him), he from al-Harith (may Allah have mercy on him), and he from one of the Companions of the Prophet (peace and blessings be upon him) (may Allah be pleased with him); and the correct view is the narration of Hammad (may Allah have mercy on him)."
I (the author) say: Mu'ammal (may Allah have mercy on him) and Hammad (may Allah have mercy on him) have also narrated it through Thabit (may Allah have mercy on him) from Sayyiduna Anas (may Allah be pleased with him).
And Imam Muslim (may Allah have mercy on him) recorded in his Sahih, through Hashim bin al-Qasim (may Allah have mercy on him), from Sulayman bin al-Mughirah (may Allah have mercy on him), he from Thabit (may Allah have mercy on him), and he from Sayyiduna Anas (may Allah be pleased with him), that the Messenger of Allah (peace and blessings be upon him) said: "I will come to the gate of Paradise on the Day of Resurrection" (the complete hadith).
And Ibn al-Mubarak (may Allah have mercy on him) narrated it from Sulayman bin al-Mughirah (may Allah have mercy on him), he from Thabit (may Allah have mercy on him), as mursal.
Related hadith on this topic