(50) باب الْمَرْءُ مَعَ مَنْ أَحَبَّ
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 2639 d
In-book reference: Book 45, Hadith 208
USC-MSA web (English) reference(deprecated numbering scheme): Book 32, Hadith 6380