Anas bin Malik (May Allah be pleased with him) reported:
A bedouin came to Messenger of Allah (ﷺ) and said to him, "When will be the Hour (i.e., the Day of Resurrection)?" He (the Prophet (ﷺ)) said, "What preparation have you made for it?" He said, "Only the love of Allah and His Messenger." Then Messenger of Allah (ﷺ) said, "You will be with those whom you love."[Al-Bukhari and Muslim].The narration in Muslim is: The man replied: "I have made no significant preparation with regard to Salat (prayer), Saum (fasting) and Sadaqah (charity) but I love Allah and His Messenger".
Arabic/English book reference: Book 1, Hadith 369