This is an issue where we have difference of opinion amongst the ulema and all of them have their evidences which are a little conflicting. Prophet ﷺ cursed women who do "niyaha". These are the women who follow funeral procession, who wail and hit/slap themselves to express grief.
Prophet Muhammad ﷺ allowed visiting of the graves, since it is a reminder of death and it helps us in remembering the reality of this life. Ayesha رضي الله عنه used to visit graveyard and she also prayed janazah salaah of her brother Abdur Rahman.
Shaykh Omar Suleiman answers and explains...
No transcription found