An Arab came to the Prophet (s.a.w.a.) and asked: When will Qiyamat occur? The Holy Prophet (s.a.w.s.) asked: What preparation have you made for Qiyamat? He said: By Allah, prayer, fasting etc. They aren’t sufficient but I love Allah and His Messenger (s.a.w.a.). The Prophet (s.a.w.a.) said: One will be in the company of the he loves.
Hayaat al-Quloob v 2 chap 10