The Prophet ﷺ said: Two festivals ('Id and Friday) have synchronised on this day. If anyone does not want to offer the Friday prayer, the 'Id prayer is sufficient for him. But we shall offer the Friday prayer. This tradition has been narrated by 'Umar from Shu'bah.
عَنْ رَسُولِ اللَّهِ ﷺ أَنَّهُ قَالَ قَدِ اجْتَمَعَ فِي يَوْمِكُمْ هَذَا عِيدَانِ فَمَنْ شَاءَ أَجْزَأَهُ مِنَ الْجُمُعَةِ وَإِنَّا مُجَمِّعُونَ قَالَ عُمَرُ عَنْ شُعْبَةَ