It is narrated from Muhammad bin Ka'b (may Allah have mercy on him) that he heard from a man among the descendants of Wa'il bin Hujr (may Allah be pleased with him), who said: The Prophet (ﷺ) said: "Friday (prayer) is obligatory upon every Muslim except a woman, a child, and a slave."
Hadith Referenceمسند الإمام الشافعي / كتاب الجمعة / 407