All perfect praise be to Allaah, the Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad, sallallaahu ‘alayhi wa sallam, is His Slave and Messenger.
It is permissible for a woman to pray these two Rak’ahs because women are the sisters of men, and what is confirmed as permissible for men is also permissible for women unless there is evidence which proves there is a difference.
If a woman prays these two Rak’ahs, she should pray them at home as her prayer at home is better for her.
However, some jurists stated that praying these two Rak’ahs is not restricted to the mosque. Al-Bujayrimi quoted Ar-Ramli on these two Rak’ahs saying: “Perhaps restricting (them) to the mosque is because the mosque is better and not for specifying them to be performed only in the mosque.”
For more benefit, please refer to Fatwa 88799.
Allaah Knows best.