Sahih al-Bukhari 6171
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
حَدَّثَنَا عَبْدَانُ، أَخْبَرَنَا أَبِي، عَنْ شُعْبَةَ، عَنْ عَمْرِو بْنِ مُرَّةَ، عَنْ سَالِمِ بْنِ أَبِي الْجَعْدِ، عَنْ أَنَسِ بْنِ مَالِكٍ، أَنَّ رَجُلاً، سَأَلَ النَّبِيَّ صلى الله عليه وسلم مَتَّى السَّاعَةُ يَا رَسُولَ اللَّهِ قَالَ مَا أَعْدَدْتَ لَهَا ". قَالَ مَا أَعْدَدْتُ لَهَا مِنْ كَثِيرِ صَلاَةٍ وَلاَ صَوْمٍ وَلاَ صَدَقَةٍ، وَلَكِنِّي أُحِبُّ اللَّهَ وَرَسُولَهُ. قَالَ " أَنْتَ مَعَ مَنْ أَحْبَبْتَ "."
Narrated Anas bin Malik:
A man asked the Prophet (ﷺ) "When will the Hour be established O Allah's Messenger (ﷺ)?" The Prophet (ﷺ) . said, "What have you prepared for it?" The man said, " I haven't prepared for it much of prayers or fast or alms, but I love Allah and His Apostle." The Prophet (ﷺ) said, "You will be with those whom you love."
Full reference and source
Sahih al-Bukhari 6171 In-book : Book 78, Hadith 197 USC-MSA web (English) : Vol. 8, Book 73, Hadith 192 (deprecated)
View source on Sunnah.com (opens in a new tab)