Anas bin Malik reported,

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

Bukhari 7153

Sahih

حدثنا عثمان بن أبي شيبة حدثنا جرير عن منصور عن سالم بن أبي الجعد حدثنا

أنس بن مالك رضي الله عنه قال

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

البخاري 7153صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Rulings
Chapter
Judging and issuing fatwa on the road
Numbering
Darussalam 7153
Bukhari 7153