Narrated Anas bin Malik
While the Prophet (ﷺ) and I were coming out of the mosque, a man met us outside the gate. The man said, "O Allah's Messenger (ﷺ)! When will be the Hour?" The Prophet (ﷺ) asked him, "What have you prepared for it?" The man became afraid and ashamed and then said, "O Allah's Messenger (ﷺ)! I haven't prepared for it much of fasts, prayers or charitable gifts but I love Allah and His Apostle." The Prophet (ﷺ) said, "You will be with the one whom you love."