Mishkat al-Masabih 1763
وَعَنْ أَبِي هُرَيْرَةَ قَالَ: زَارَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَبْرَ أُمِّهِ فَبَكَى وَأَبْكَى مَنْ حَوْلَهَ فَقَالَ: «اسْتَأْذَنْتُ رَبِّي فِي أَن أسْتَغْفر لَهَا فَلم يُؤذن لي ن وَاسْتَأْذَنْتُهُ فِي أَنْ أَزُورَ قَبْرَهَا فَأُذِنَ لِي فَزُورُوا الْقُبُورَ فَإِنَّهَا تُذَكِّرُ الْمَوْتَ» . رَوَاهُ مُسْلِمٌ
From Abu Hurayrah, who said: The Prophet ﷺ visited the grave of his mother, and he wept and made those around him weep. He said: "I asked my Lord's permission to seek forgiveness for her, but I was not given permission, and I asked His permission to visit her grave, and I was given permission. So visit graves, for they remind of death." Reported by Muslim.