Anas bin Malik reported,

The Messenger of Allah ﷺ came upon a woman weeping over a small child of hers, and he said to her, "Be mindful of Allah and be patient."She replied, "What do you care about my affliction?"When he had gone, she was told, "That was the Messenger of Allah ﷺ."She was struck with something like the pangs of death, so she came to his door, and she found no doorkeepers there. She said, "Messenger of Allah, I did not recognize you."He said, "Patience is at the first blow," or he said, "at the first of the blow."Such is the hadith of Uthman bin Umar with its story, while in the hadith of Abdul-Samad it reads, "The Prophet ﷺ passed by a woman at a grave."

Muslim 2141

Sahih

و حدثناه يحيى بن حبيب الحارثي حدثنا خالد يعني ابن الحارث ح و حدثنا عقبة بن مكرم العمي حدثنا عبد الملك بن عمرو ح و حدثني أحمد بن إبراهيم الدورقي حدثنا عبد الصمد قالوا جميعا حدثنا شعبة بهذا الإسناد نحو حديث عثمان بن عمر بقصته وفي حديث عبد الصمد مر النبي ﷺ بامرأة عند قبر

مسلم 2141صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Funerals
Chapter
Patience in affliction at the first shock
Numbering
Darussalam 2141
Muslim 2141