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. (Using translation from Abū Dāʾūd 1067)
عَنِ النَّبِيِّ ﷺ قَالَ الْجُمُعَةُ حَقٌّ وَاجِبٌ عَلَى كُلِّ مُسْلِمٍ فِي جَمَاعَةٍ إِلَّا أَرْبَعَةٌ عَبْدٌ مَمْلُوكٌ أَوِ امْرَأَةٌ أَوْ صَبِيٌّ أَوْ مَرِيضٌ