and to offer supplication, but she is not permitted to visit the grave of the Prophet ﷺ, for she is forbidden to visit graves.
Shaykh Muḥammad ibn Ibrāhīm Āl al-Shaykh, former Grand Mufti of Saudi Arabia, said in his Majmūʿ al-Fatāwā (3/239): “The correct ruling on this issue is that women are to be prevented from visiting his grave ﷺ for two reasons. First, the evidences are general, and when a prohibition comes in general terms no one may restrict it without proof. Second, the rationale behind the prohibition is present here.” End quote. (1)
Shaykh ʿAbd al-ʿAzīz ibn Bāz, may Allah have mercy on him, wrote in his Manasik (2), after mentioning the visitation of the Prophet’s grave for those who come to his noble mosque: “This visitation is prescribed only for men. As for women, they are not allowed to visit any graves, because it is authentically reported that the Prophet ﷺ ‘cursed the women who make frequent visits to graves and those who build mosques and place lamps over them.’”
As for travelling to Madinah in order to pray in the Messenger’s Mosque, make supplication therein, and perform other acts that are lawful in all mosques, this is legislated for everyone. End quote.