The prophet (saws) asked his Lord for permission to visit the grave of his mother
Abu Huraira reported Allah’s Messenger, (ﷺ) as saying:
I sought permission to beg forgiveness for my mother, but He did not grant it to me. I sought permission from Him to visit her grave, and He granted it (permission) to me.
Book no 11. Hadith no 134
Abu Huraira reported:
The Apostle of Allah (ﷺ) visited the grave of his mother and he wept, and moved others around him to tears, and said:
I sought permission from my Lord to beg forgiveness for her but it was not granted to me, and I sought permission to visit her grave and it was granted to me
so visit the graves, for that makes you mindful of death.
Book 11. Hadith 135
Ibn Buraida reported on the authority of his father that the Messenger of Allah (ﷺ) said:
I forbade you to visit graves, but you may now visit them;
I forbade you to eat the flesh of sacrificial animals after three days, but you way now keep it as along as you feel inclined;
and I forbade you nabidh except in a water-skin, you may drink it from all kinds of water-skins, but you must not drink anything intoxicating.
Book 11. Hadith 136