كتاب البر والصلة والآداب
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 f

Anas b. Malik reported:

Allah's Messenger (ﷺ) and I were coming out of the mosque that we met a person on the threshold of the mosque and he said to Allah's Messenger (ﷺ): When would be the Last Hour? Allah's Messenger (ﷺ) said: What preparation have you made for that? The man became silent and then said: Allah's Messenger, I have made no significant preparation with prayer and fasting and charity but I, however, love Allah and His Messenger. Thereupon (the Holy Prophet) said: You would be along with one whom you love.
حَدَّثَنَا عُثْمَانُ بْنُ أَبِي شَيْبَةَ، وَإِسْحَاقُ بْنُ إِبْرَاهِيمَ، قَالَ إِسْحَاقُ أَخْبَرَنَا وَقَالَ، عُثْمَانُ حَدَّثَنَا جَرِيرٌ، عَنْ مَنْصُورٍ، عَنْ سَالِمِ بْنِ أَبِي الْجَعْدِ، حَدَّثَنَا أَنَسُ بْنُ مَالِكٍ، قَالَ بَيْنَمَا أَنَا وَرَسُولُ اللَّهِ، صلى الله عليه وسلم خَارِجَيْنِ مِنَ الْمَسْجِدِ فَلَقِينَا رَجُلاً عِنْدَ سُدَّةِ الْمَسْجِدِ فَقَالَ يَا رَسُولَ اللَّهِ مَتَى السَّاعَةُ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ مَا أَعْدَدْتَ لَهَا ‏"‏ ‏.‏ قَالَ فَكَأَنَّ الرَّجُلَ اسْتَكَانَ ثُمَّ قَالَ يَا رَسُولَ اللَّهِ مَا أَعْدَدْتُ لَهَا كَبِيرَ صَلاَةٍ وَلاَ صِيَامٍ وَلاَ صَدَقَةٍ وَلَكِنِّي أُحِبُّ اللَّهَ وَرَسُولَهُ ‏.‏ قَالَ ‏"‏ فَأَنْتَ مَعَ مَنْ أَحْبَبْتَ ‏"‏ ‏.‏
Reference : Sahih Muslim 2639f
In-book reference : Book 45, Hadith 210
USC-MSA web (English) reference : Book 32, Hadith 6382
  (deprecated numbering scheme)