Hadith on Graves: Permission to visit graves as a reminder

Abu Huraira reported: The Prophet, peace and blessings be upon him, visited the grave of his mother and he wept and made others around him start weeping. The Prophet said, “I asked my Lord for permission to seek forgiveness for her and He did not give me permission, then I asked my Lord for permission to visit her grave and He gave me permission, so visit the graveyards. Verily, it is a reminder of death.”

Source: Ṣaḥīḥ Muslim 976

Grade: Sahih (authentic) according to Muslim

عَنْ أَبِي هُرَيْرَةَ قَالَ زَارَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَبْرَ أُمِّهِ فَبَكَى وَأَبْكَى مَنْ حَوْلَهُ فَقَالَ اسْتَأْذَنْتُ رَبِّي فِي أَنْ أَسْتَغْفِرَ لَهَا فَلَمْ يُؤْذَنْ لِي وَاسْتَأْذَنْتُهُ فِي أَنْ أَزُورَ قَبْرَهَا فَأُذِنَ لِي فَزُورُوا الْقُبُورَ فَإِنَّهَا تُذَكِّرُ الْمَوْتَ

976 صحيح مسلم كتاب الجنائز باب استئذان النبي صلى الله عليه وسلم ربه عز وجل في زيارة قبر أمه