Riyad as-Salihin 372: On Visiting the Righteous and Keeping Company with them

Anas relates that a rustic asked the Holy Prophet: When will the Judgment be? He countered with: What preparation have you made for it? The man said: The love of Allah and His Messenger. The Holy Prophet said: You will be with those you love (Bokhari and Muslim). Another version is: I have not prepared for it with many Prayers and fasts and much alms-giving; but I love Allah and His Messenger.

وعن أنس رضي الله عنه أن أعرابيًا قال لرسول الله صلى الله عليه وسلم ‏:‏ متى الساعة‏؟‏ قال رسول الله صلى الله عليه وسلم‏:‏ ما أعددت لها‏؟‏‏"‏ قال‏:‏ حب الله ورسوله قال‏:‏ ‏"‏أنت مع من أحببت‏"‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏ وهذا لفظ مسلم‏.‏
وفي رواية لهما‏:‏ ما أعددت لها من كثير صوم، ولا صلاة، ولا صدقة ولكني أحب الله ورسوله‏.‏

On Visiting the Righteous and Keeping Company with them

10 of 10 left today