Anas bin Malik reported,

While the Messenger of Allah ﷺ and I were leaving the mosque, we met a man at the entrance of the mosque. He asked, "Messenger of Allah, when is the Hour?"The Messenger of Allah ﷺ replied, "What have you prepared for it?"The man seemed humbled, then said, "Messenger of Allah, I have not prepared much in the way of prayer, fasting, or charity, but I love Allah and His Messenger."He said, "Then you will be with those you love."

Azami 13988

Sahih

عن أنس بن مالك الأنصاري، قال

بينما أنا ورسول الله ﷺ خارجين من المسجد، فلقينا رجلا عند سدة المسجد، فقال: يا رسول الله متى الساعة؟ قال رسول الله ﷺ: ما أعددت لها؟ قال فكأن الرجل استكان، ثم قال: يا رسول الله ما أعددت لها كبير صلاة ولا صيام ولا صدقة، ولكني أحب الله ورسوله، قال: فأنت مع من أحببت.

الأعظمي 13988صحيح
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 13988 (2nd edition)
Azami 13988