The Prophet (ﷺ) said: The Friday prayer in congregation is a necessary duty for every Muslim, with four exceptions; a slave, a woman, a boy, and a sick person.

Abu Dawud said: Tariq b. Shihab had seen the Prophet (ﷺ) but not heard anything from him.
Sunan Abi Dawud Book 2, Hadith 678