Anas ibn Malik reported: The Prophet, peace and blessings be upon him, passed by a woman who was weeping next to a grave. The Prophet said, “Be mindful of Allah and be patient.” She said, “Go away from me! You have not been afflicted by a calamity like mine,” and she did not recognize him. Then, she was told that it was the Prophet, so she went to the Prophet’s house and she did not find any guards there. She said to him, “I did not recognize you.” The Prophet said, “Verily, patience is at the first strike.”
Source: Ṣaḥīḥ al-Bukhārī 1283, Ṣaḥīḥ Muslim 926
Grade: Muttafaqun Alayhi (authenticity agreed upon) according to Al-Bukhari and Muslim
عَنْ أَنَسِ بْنِ مَالِكٍ قَالَ مَرَّ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِامْرَأَةٍ تَبْكِي عِنْدَ قَبْرٍ فَقَالَ اتَّقِي اللَّهَ وَاصْبِرِي قَالَتْ إِلَيْكَ عَنِّي فَإِنَّكَ لَمْ تُصَبْ بِمُصِيبَتِي وَلَمْ تَعْرِفْهُ فَقِيلَ لَهَا إِنَّهُ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَأَتَتْ بَابَ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَلَمْ تَجِدْ عِنْدَهُ بَوَّابِينَ فَقَالَتْ لَمْ أَعْرِفْكَ فَقَالَ إِنَّمَا الصَّبْرُ عِنْدَ الصَّدْمَةِ الْأُولَى
1283 صحيح البخاري كتاب الجنائز باب زيارة القبور
926 صحيح مسلم كتاب الجنائز باب في الصبر على المصيبة عند الصدمة الأولى