Abu Hurairah (RA) 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.
Hadith ReferenceSahih Muslim / The Book of Prayer - Funerals / Hadith: 976