5 – The prohibition of women visiting graves:
Abu Hurayrah reported that the Messenger of Allah ﷺ “cursed women who visit graves.” (1)
Shaykh al-Islam Ibn Taymiyyah commented: “It is well known that if this door is opened for a woman, it draws her into anguish, lamenting and wailing, for she is naturally weaker, quicker to grieve and slower to show patience. In addition, her crying harms the deceased, and her voice and appearance may tempt men, as another hadith states: ‘You tempt the living and distress the dead.’
“When women’s visits to graves are both a likely occasion and a direct cause of prohibited matters—affecting them and men alike—and when the underlying wisdom cannot be precisely measured, nor any safe limit set that would prevent those outcomes, nor a reliable distinction made from one case to another, a foundational principle of the Sharia is applied: whenever the wisdom is hidden or not clearly apparent, the ruling is tied to what most likely leads to it. Accordingly, this door is closed as a preventive measure, just as looking at a woman’s concealed adornment is forbidden because of the ensuing temptation, and as seclusion with an unrelated woman and similar glances are prohibited.
“There is no benefit in a woman’s visit to a grave that can outweigh these harms; her purpose is merely to pray for the deceased, and she can do that from her home.” End of quotation from Majmuʿ al-Fatāwā (24|355–356).