كتاب البر والصلة والآداب
45  
The Book of Virtue, Enjoining Good Manners, and Joining of the Ties of Kinship
(50)
Chapter: A Man Will Be With Those Whom He Loves
(50)
باب الْمَرْءُ مَعَ مَنْ أَحَبَّ ‏ ‏
Sahih Muslim 2639 d

Anas b. Malik reported that a person came to Allah's Messenger (ﷺ) and said to Allah's Messenger:

When would be the Last Hour? Thereupon he (the Holy Prophet) said: What preparation have you made for the Last Hour? He said: The love of Allah and of His Messenger (is my only preparation). Thereupon he (the Holy Prophet) said: You would be along with one whom you love. Anas said: Nothing pleased us more after accepting Islam than the words of Allah's Apostle: You would be along with one whom you love. And Anas said. I love Allah and His Messenger and Abu Bakr and Umar, and I hope that I would be along with them although I have not acted like them.
حَدَّثَنِي أَبُو الرَّبِيعِ الْعَتَكِيُّ، حَدَّثَنَا حَمَّادٌ، - يَعْنِي ابْنَ زَيْدٍ - حَدَّثَنَا ثَابِتٌ الْبُنَانِيُّ، عَنْ أَنَسِ بْنِ مَالِكٍ، قَالَ جَاءَ رَجُلٌ إِلَى رَسُولِ اللَّهِ صلى الله عليه وسلم فَقَالَ يَا رَسُولَ اللَّهِ مَتَى السَّاعَةُ قَالَ ‏"‏ وَمَا أَعْدَدْتَ لِلسَّاعَةِ ‏"‏ ‏.‏ قَالَ حُبَّ اللَّهِ وَرَسُولِهِ قَالَ ‏"‏ فَإِنَّكَ مَعَ مَنْ أَحْبَبْتَ ‏"‏ ‏.‏ قَالَ أَنَسٌ فَمَا فَرِحْنَا بَعْدَ الإِسْلاَمِ فَرَحًا أَشَدَّ مِنْ قَوْلِ النَّبِيِّ صلى الله عليه وسلم ‏"‏ فَإِنَّكَ مَعَ مَنْ أَحْبَبْتَ ‏"‏ ‏.‏ قَالَ أَنَسٌ فَأَنَا أُحِبُّ اللَّهَ وَرَسُولَهُ وَأَبَا بَكْرٍ وَعُمَرَ فَأَرْجُو أَنْ أَكُونَ مَعَهُمْ وَإِنْ لَمْ أَعْمَلْ بِأَعْمَالِهِمْ ‏.‏
Reference : Sahih Muslim 2639d
In-book reference : Book 45, Hadith 208
USC-MSA web (English) reference : Book 32, Hadith 6380
  (deprecated numbering scheme)