Sahih al-Bukhari 93:17
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."
Reference
Sahih al-Bukhari 93:17
In-book reference
Book 93, Hadith 17
Arabic Text
حَدَّثَنَا عُثْمَانُ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا جَرِيرٌ، عَنْ مَنْصُورٍ، عَنْ سَالِمِ بْنِ أَبِي الْجَعْدِ، حَدَّثَنَا أَنَسُ بْنُ مَالِكٍ ـ رضى الله عنه ـ قَالَ بَيْنَمَا أَنَا وَالنَّبِيُّ، صلى الله عليه وسلم خَارِجَانِ مِنَ الْمَسْجِدِ فَلَقِيَنَا رَجُلٌ عِنْدَ سُدَّةِ الْمَسْجِدِ فَقَالَ يَا رَسُولَ اللَّهِ مَتَى السَّاعَةُ قَالَ النَّبِيُّ صلى الله عليه وسلم " مَا أَعْدَدْتَ لَهَا " فَكَأَنَّ الرَّجُلَ اسْتَكَانَ ثُمَّ قَالَ يَا رَسُولَ اللَّهِ مَا أَعْدَدْتُ لَهَا كَبِيرَ صِيَامٍ وَلاَ صَلاَةٍ وَلاَ صَدَقَةٍ، وَلَكِنِّي أُحِبُّ اللَّهَ وَرَسُولَهُ. قَالَ " أَنْتَ مَعَ مَنْ أَحْبَبْتَ ".