Abdullah bin Saaib reported,

I attended the Eid with the Messenger of Allah ﷺ. He led us in the Eid prayer, then said, "We have completed the prayer. Whoever wishes to stay for the sermon may stay, and whoever wishes to leave may leave."

Ibn Majah 1290

Sahih

حدثنا هدية بن عبد الوهاب وعمرو بن رافع البجلي قالا حدثنا الفضل بن موسى حدثنا ابن جريج عن عطاء

عن عبد الله بن السائب قال

حضرت العيد مع رسول الله ﷺ فصلى بنا العيد ثم قال قد قضينا الصلاة فمن أحب أن يجلس للخطبة فليجلس ومن أحب أن يذهب فليذهب

ابن ماجه 1290صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
Waiting for the sermon after the prayer
Numbering
Darussalam 1290
Ibn Majah 1290