The Messenger of Allah ﷺ used to perform the prayer on Eid al-Adha and Eid al-Fitr, then deliver the sermon after the prayer.
حدثنا إبراهيم بن المنذر قال حدثنا أنس بن عياض عن عبيد الله عن نافع
أن رسول الله ﷺ كان يصلي في الأضحى والفطر ثم يخطب بعد الصلاة