صحيح البخاري Sahih Bukhari كتاب الجنائز The Book of Al-Janaiz (Funerals)
بَابُ زِيَارَةِ الْقُبُورِ:

(31) Chapter. Visiting the graves.

1 hadith
Hadith 1283
حَدَّثَنَا آدَمُ ، حَدَّثَنَا شُعْبَةُ ، حَدَّثَنَا ثَابِتٌ ، عَنْ أَنَسِ بْنِ مَالِكٍ رَضِيَ اللَّهُ عَنْهُ , قَالَ : " مَرَّ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِامْرَأَةٍ تَبْكِي عِنْدَ قَبْرٍ , فَقَالَ : اتَّقِي اللَّهَ وَاصْبِرِي ، قَالَتْ : إِلَيْكَ عَنِّي فَإِنَّكَ لَمْ تُصَبْ بِمُصِيبَتِي وَلَمْ تَعْرِفْهُ ، فَقِيلَ لَهَا : إِنَّهُ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، فَأَتَتْ بَابَ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَلَمْ تَجِدْ عِنْدَهُ بَوَّابِينَ ، فَقَالَتْ : لَمْ أَعْرِفْكَ ، فَقَالَ : إِنَّمَا الصَّبْرُ عِنْدَ الصَّدْمَةِ الْأُولَى " .
Narrated Anas bin Malik: The Prophet passed by a woman who was weeping beside a grave. He told her to fear Allah and be patient. She said to him, "Go away, for you have not been afflicted with a calamity like mine." And she did not recognize him. Then she was informed that he was the Prophet . so she went to the house of the Prophet and there she did not find any guard. Then she said to him, "I did not recognize you." He said, "Verily, the patience is at the first stroke of a calamity."
Hadith Reference Sahih Bukhari / The Book of Al-Janaiz (Funerals) / Hadith: 1283
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة