✍🏻 Answer:
There is a difference of opinion among the jurists regarding women visiting graves and shrines. Some scholars have declared visiting graves permissible for women, while others have prohibited it. Therefore, it is necessary to understand this matter in detail.
🌿 Permission to visit graves:
In the early period of Islam, women used to go to graves and engage in un-Islamic acts such as wailing, lamenting, tearing their hair and beating their chests, so the Messenger of Allah ﷺ initially prohibited visiting graves. Later, when people were reformed through Islamic teaching and training, he ﷺ granted permission to both men and women to visit graves.
The Messenger of Allah ﷺ said:
«نَهَيْتُكُمْ عَنْ زِيَارَةِ الْقُبُورِ فَزُورُوهَا»
Translation:
"I had forbidden you from visiting graves; now visit them."
(Sahih Muslim, Book of Funerals, Chapter: The Prophet ﷺ seeking his Lord's permission to visit his mother's grave, Hadith: 977)
This blessed hadith establishes permission to visit graves. However, regarding this permission for women, the jurists have given further detail.
📖 The Shariah details on women visiting shrines:
Sadr-ush-Shariah Mufti Muhammad Amjad Ali A'zami (may Allah have mercy on him) says in Bahar-e-Shariat:
"Some scholars have said that visiting graves is permissible for women, and Durr-e-Mukhtar adopts this view. But if they go to the graves of their relatives, they will wail and lament, so it is prohibited; and if they go to the graves of the righteous for blessings, there is no harm for elderly women, while it is prohibited for young women.
The safest course is that women be prohibited absolutely, because at the graves of their own relatives there is that same wailing and lamenting, and at the graves of the righteous they will either exceed the limits in reverence or show disrespect, and both of these are found very commonly among women."
(Bahar-e-Shariat, Part 4, Vol. 1, p. 849, Maktaba-tul-Madinah, Karachi)
This passage shows that some jurists have permitted women to visit graves, but they have also stated various conditions and precautions. Sadr-ush-Shariah (may Allah have mercy on him) also regarded prohibiting women absolutely as the more cautious course.
🕌 The situation at shrines today:
Today in our society, at some shrines men and women gather in one place without proper Shariah-compliant veiling and precaution. In some places there is free mixing of non-mahram men and women, which creates the risk of fitnah (temptation) and many un-Islamic acts take place.
In such a situation it is not permissible for women to go to those shrines, because wherever the mixing of men and women brings the risk of fitnah, one must avoid going there.
Likewise, going without Shariah-compliant veiling, being careless with non-mahram men, and wailing, lamenting or doing other un-Islamic acts there are also impermissible.
However, where full Shariah-compliant veiling is arranged, there is no mixing with non-mahram men, no risk of fitnah, and no un-Islamic act is done, the opinion of permissibility of visiting graves exists. Therefore, it is not correct to give one single ruling for every place and every situation.
💡 An important clarification:
The presence of women at the blessed Rawdah of the Messenger of Allah ﷺ is also an example of permissibility according to the scholars who hold that visiting graves is permitted, provided the Shariah etiquette and veiling are observed.
Remember also that wherever the gathering of men and women in one place causes Shariah violations and fitnah, women should be careful not only about shrines but also about celebrations, markets, neighbourhood mosques and other places.
📌 Summary of the Answer:
Scholars differ regarding women visiting shrines. Some scholars have permitted it with conditions, while Sadr-ush-Shariah Mufti Muhammad Amjad Ali A'zami (may Allah have mercy on him) has regarded prohibiting women absolutely as the more cautious course in Bahar-e-Shariat.
Therefore, nowadays, at shrines where there is lack of veiling, mixing of men and women, risk of fitnah and un-Islamic acts, it is not permissible for women to go. And where these evils do not exist, there is room for the opinion of permissibility, though the precaution stated in Bahar-e-Shariat should be kept in view.
واللہ تعالیٰ اعلم بالصواب
محمد عظمت الله نظامي عفی عنہ