Ibn Mas'ud reported the Prophet as saying to people who stayed away from the Friday prayer, “I have thought about commanding a man to lead the people in prayer, then burning their houses over men who stayed away from the Friday prayer."
Narrated Tariq b. Shihab reported God’s Messenger as saying, “The Friday paryer in congregation is a necessary duty for every Muslim, with four exceptions:
a slave, a woman, a boy, or an invalid.”
Abu Dawud transmitted it. In Sharh as-sunna it occurs with the same wording as in al-Masabih from a man of the B. Wa’il.
Ibn ‘Abbas reported the Prophet as saying, “If anyone neglects the Friday prayer except in case of necessity, he will be inscribed as a hypocrite in a book which will not be obliterated or changed.” Some versions have “three times."*
*Meaning that the Prophet said these words three times.