Hadithcore
Mishkat al-Masabih, 1379

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.

وَعَنِ ابْنِ عَبَّاسٍ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «مَنْ تَرَكَ الْجُمُعَةُ مِنْ غَيْرِ ضَرُورَةٍ كُتِبَ مُنَافِقًا فِي كِتَابٍ لَا يُمْحَى وَلَا يُبَدَّلُ» . وَفِي بَعْضِ الرِّوَايَاتِ ثَلَاثًا. رَوَاهُ الشَّافِعِي

References1 variant
In-Book Reference
Book 4, Hadith 782