Sahih al-Bukhari, Volume 9, Book 89, Hadith 267 (USC-MSA) ⓘ
Narrated Anas bin Malik: While the Prophet and I were coming out of the mosque, a man met us outside the gate. The man said, "O Allah's Messenger! When will be the Hour?" The Prophet asked him, "What have you prepared for it?" The man became afraid and ashamed and then said, "O Allah's Messenger! I haven't prepared for it much of fasts, prayers or charitable gifts but I love Allah and His Apostle." The Prophet said, "You will be with the one whom you love."
حَدَّثَنَا عُثْمَانُ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا جَرِيرٌ، عَنْ مَنْصُورٍ، عَنْ سَالِمِ بْنِ أَبِي الْجَعْدِ، حَدَّثَنَا أَنَسُ بْنُ مَالِكٍ ـ رضى الله عنه ـ قَالَ بَيْنَمَا أَنَا وَالنَّبِيُّ، صلى الله عليه وسلم خَارِجَانِ مِنَ الْمَسْجِدِ فَلَقِيَنَا رَجُلٌ عِنْدَ سُدَّةِ الْمَسْجِدِ فَقَالَ يَا رَسُولَ اللَّهِ مَتَى السَّاعَةُ قَالَ النَّبِيُّ صلى الله عليه وسلم " مَا أَعْدَدْتَ لَهَا " فَكَأَنَّ الرَّجُلَ اسْتَكَانَ ثُمَّ قَالَ يَا رَسُولَ اللَّهِ مَا أَعْدَدْتُ لَهَا كَبِيرَ صِيَامٍ وَلاَ صَلاَةٍ وَلاَ صَدَقَةٍ، وَلَكِنِّي أُحِبُّ اللَّهَ وَرَسُولَهُ. قَالَ " أَنْتَ مَعَ مَنْ أَحْبَبْتَ ".
also referenced under: Book 93, Hadith 17 (In-Book) & Hadith 7153 (DarusSalam)