Question
We perform the Friday prayer in our office, and the office is located in the city. Is our Friday prayer valid?
Answer
الحمد لله، والصلاة والسلام علىٰ رسول الله، أما بعد!
According to the majority of the scholars among the Hanafis, Shafi’is and Hanbalis, the Friday prayer can be performed in places other than the mosque, because there is no legal obstacle to its permissibility.
Allah the Exalted has made the whole earth a mosque for the Ummah of Muhammad. The Prophet ﷺ said:
وجعلت لي الارض طيبة طهورا ومسجدا
Translation: The whole earth has been made for me pure and a place of prayer.
Similarly, Umar (may Allah be pleased with him) wrote in a letter to the people of Bahrain:
أن جمعوا حيث كنتم
Translation: Perform the Friday prayer wherever you are.
Conclusion
In light of the above evidence, performing the Friday prayer in the office is valid, provided there is no mosque nearby.
هذا ما عندي والله أعلم بالصواب