Sahih al-Bukhari, Book 62, Hadith 38 (In-Book)

Narrated Anas: A man asked the Prophet about the Hour (i.e. Day of Judgment) saying, "When will the Hour be?" The Prophet said, "What have you prepared for it?" The man said, "Nothing, except that I love Allah and His Apostle." The Prophet said, "You will be with those whom you love." We had never been so glad as we were on hearing that saying of the Prophet (i.e., "You will be with those whom you love.") Therefore, I love the Prophet, Abu Bakr and `Umar, and I hope that I will be with them because of my love for them though my deeds are not similar to theirs.

حَدَّثَنَا سُلَيْمَانُ بْنُ حَرْبٍ، حَدَّثَنَا حَمَّادُ بْنُ زَيْدٍ، عَنْ ثَابِتٍ، عَنْ أَنَسٍ ـ رضى الله عنه ـ أَنَّ رَجُلاً، سَأَلَ النَّبِيَّ صلى الله عليه وسلم عَنِ السَّاعَةِ، فَقَالَ مَتَى السَّاعَةُ قَالَ ‏"‏ وَمَاذَا أَعْدَدْتَ لَهَا ‏"‏‏.‏ قَالَ لاَ شَىْءَ إِلاَّ أَنِّي أُحِبُّ اللَّهَ وَرَسُولَهُ صلى الله عليه وسلم‏.‏ فَقَالَ ‏"‏ أَنْتَ مَعَ مَنْ أَحْبَبْتَ ‏"‏‏.‏ قَالَ أَنَسٌ فَمَا فَرِحْنَا بِشَىْءٍ فَرَحَنَا بِقَوْلِ النَّبِيِّ صلى الله عليه وسلم ‏"‏ أَنْتَ مَعَ مَنْ أَحْبَبْتَ ‏"‏‏.‏ قَالَ أَنَسٌ فَأَنَا أُحِبُّ النَّبِيَّ صلى الله عليه وسلم وَأَبَا بَكْرٍ وَعُمَرَ، وَأَرْجُو أَنْ أَكُونَ مَعَهُمْ بِحُبِّي إِيَّاهُمْ، وَإِنْ لَمْ أَعْمَلْ بِمِثْلِ أَعْمَالِهِمْ‏.‏

sunnah.com