Anas bin Malik reported,

The Prophet ﷺ passed by a woman who was weeping at a grave. He said to her, "Fear Allah and be patient."She replied, "Leave me alone. You have not been struck by a calamity like mine." She did not recognize him.She was told, "That was the Prophet ﷺ." So she went to the Prophet's ﷺ door, where she found no doorkeepers, and said, "I did not recognize you."He said, "True patience is at the first blow."

Bukhari 1283

Sahih

حدثنا آدم حدثنا شعبة حدثنا ثابت

عن أنس بن مالك رضي الله عنه قال

مر النبي ﷺ بامرأة تبكي عند قبر فقال اتقي الله واصبري قالت إليك عني فإنك لم تصب بمصيبتي ولم تعرفه فقيل لها إنه النبي ﷺ فأتت باب النبي ﷺ فلم تجد عنده بوابين فقالت لم أعرفك فقال إنما الصبر عند الصدمة الأولى

البخاري 1283صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Funerals
Chapter
Visiting graves
Numbering
Darussalam 1283
Bukhari 1283