The Messenger of Allah ﷺ, Abu Bakr, and Umar used to perform the prayer of the two Eids before the sermon.
أخبرنا إسحق بن إبراهيم قال أنبأنا عبدة بن سليمان قال حدثنا عبيد الله عن نافع
أن رسول الله ﷺ وأبا بكر وعمر رضي الله عنهما كانوا يصلون العيدين قبل الخطبة
Muslim reported it in "Prayer of the Two Eids," chapter "Book of the Prayer of the Two Eids," hadith no. 888, from the hadith of Abdah, and Bukhari in "The Two Eids," chapter "The Sermon After the Eid," hadith no. 963, from the hadith of Ubaydullah bin Umar, with the same content, and it is in Kubra, hadith no. 1767.