Riyad as-Salihin » The Book of Miscellany
The Prophet (ﷺ) passed by a woman who was crying over a grave and said, “Fear Allah and be patient.” She said, “Away from me! My calamity has not befallen you and you are not aware of it.” The woman was later told that it was the Prophet (ﷺ) (who had advised her). She came to his door where she found no doorkeeper. She said, “(I am sorry) I did not know you.” Messenger of Allah (ﷺ) said, “Patience is (becoming) only at the first (stroke) of grief”.
[Al-Bukhari and Muslim].
Another narration in Muslim says: The woman was crying over her son.
وعن أنس رضي الله عنه قال: مر النبي صلى الله عليه وسلم بامرأة تبكي عند قبر فقال : ”اتقي الله واصبري” فقالت : إليك عني ، فإنك لم تصب بمصيبتي ( ولم تعرفه، فقيل لها : إنه النبي صلى الله عليه وسلم ، فأتت باب النبي صلى الله عليه وسلم، فلم تجد عنده بوابين، فقالت: لم أعرفك، فقال: ”إنما الصبر عند الصدمة الأولى” ((متفق عليه)) .
Arabic/English book reference : Book 1, Hadith 31
The Messenger of Allah (ﷺ) said, “Allah, the Exalted, says: ‘I have no reward other than Jannah for a believing slave of Mine who remains patient for My sake when I take away his beloved one from among the inhabitants of the world”.
Arabic/English book reference : Book 1, Hadith 32
Posted from : Hadeeth – An Nawawi Riyadus us Saliheen