It is slightly disliked for women to attend a funeral at the graveyard. However, it is allowed for women to visit a graveyard after burial to pray for their loved ones and contemplate.
What the Qur’an and Sunnah Say
What the Scholars Said
Imam As-Sarakhsī said: It is allowed for women to visit graveyards. (al-Fatāwā al-Hindiyyah 5:350)
Imam al-ʿAynī said: It is slightly disliked for women to follow a dead body to the graveyard. (ad-Durr al-Mukhtār 5:249)
Shaykh Mustafa Umar