[Machine] I witnessed the Prophet ﷺ on the day of Eid. When he finished the prayer, he said, "We will give a sermon, so whoever wishes to stay for the sermon may sit, and whoever wishes to leave may leave." This is a "authentic hadith according to the conditions of the two sheikhs (Al-Bukhari and Muslim), and they have not excluded it." This is the meaning of the hadith that is asked about during the holidays, except that it is narrated by Ibn Abbas according to the conditions of the two sheikhs.
شَهِدْتُ مَعَ رَسُولِ اللَّهِ ﷺ الْعِيدَ فَلَمَّا قَضَى الصَّلَاةَ قَالَ «إِنَّا نَخْطُبُ فَمَنْ أَحَبَّ أَنْ يَجْلِسَ لِلْخُطْبَةِ فَلْيَجْلِسْ وَمَنْ أَحَبَّ أَنْ يَذْهَبَ فَلْيَذْهَبْ» هَذَا «حَدِيثٌ صَحِيحٌ عَلَى شَرْطِ الشَّيْخَيْنِ وَلَمْ يُخَرِّجَاهُ» وَهُوَ مَعْنَى الْحَدِيثِ الَّذِي يُسْأَلُ عَنْهُ فِي الْأَعْيَادِ إِلَّا أَنَّهُ عَنِ ابْنِ عَبَّاسٍ على شرط الشيخين