Ref. No. 2564/45-3919
In the name of Allah the most Gracious the most Merciful
The answer to your question is as follows:
It should be noted that as it is preferable for women to perform daily prayers at home in their homeland, in the same way it is preferable for women to pray at their residences (hotels) in Makkah and Madinah without attending congregational daily prayers or Friday prayer. To pray the salah in the hotels, will be rewarded the same as in Haramain. However, when women go to visit the House of Kaba or the Rauza of the Prophet (saws), they can pray in congregation daily prayers or Friday prayer in Haramain. But they must not pray in Muhazat of men. So the question of attending just Friday prayer is meaningless.
عن عبداللہ عن النبی ﷺ قال صلوۃ المراۃ فی بیتھا افضل من صلوتھا فی حجرتھا وصلوتھا فی مخدعھا افضل من صلوتھا فی بیتھا (ابوداؤد ، کتاب الصلوۃ ، باب ماجاء فی خروج النساء ، الرقم 570)
And Allah knows best
Darul Ifta
Darul Uloom Waqf Deoband