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.
Shafi‘i transmitted it.