I offered the ʿId prayer with Messenger of Allah ﷺ, Abu Bakr, ʿUmar and ʿUthman and all of them offered the prayer before delivering the Khutba.
شَهِدْتُ الْعِيدَ مَعَ رَسُولِ اللَّهِ ﷺ وَأَبِي بَكْرٍ وَعُمَرَ وَعُثْمَانَ ؓ فَكُلُّهُمْ كَانُوا يُصَلُّونَ قَبْلَ الْخُطْبَةِ