Q: Who is obliged to attend the Jumu’ah/Friday prayer service?
A: Jumuʿah is obligatory upon the following:
- free resident Muslim males of legal capacity in an area with buildings (even if constructed of cane);
- travelers not permitted to shorten prayer;
- and residents living outside the city an explicit distance of one farsakh (5.31 US miles/8.43 km) or less between them and its location (from the minaret).
It is not obligatory upon the following:
- those permitted to shorten;
- the bondsman;
- partially subjugated;
- women;
- and hermaphrodites.
It will suffice for whoever attends, however it is not convened with them and they, as well as non-residents, are not to be counted as a part of the 40. Likewise, their imāmship for it is not valid.
Source: Bidayat al-Abid