Anas bin Malik reported,

While I and the Messenger of Allah ﷺ were leaving the mosque, we met a man at the mosque's entrance.He said, "Messenger of Allah, when is the Hour?"The Messenger of Allah ﷺ replied, "What have you prepared for it?"The man seemed to feel 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, "You will be with those you love."

Muslim 6715

Sahih

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

حدثنا أنس بن مالك قال

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

مسلم 6715صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Righteousness, maintaining ties, and good manners
Chapter
One is with those whom he loves
Numbering
Darussalam 6715
Muslim 6715