Messenger of Allah ﷺ used to offer the prayer of ʿId-ul-Adha and ʿId-ul-Fitr and then deliver the Khutba after the prayer. (Using translation from Bukhārī 957)
أَنَّ رَسُولَ اللهِ ﷺ كَانَ يُصَلِّي فِي الْعِيدَيْنِ الْأَضْحَى وَالْفِطْرَ ثُمَّ يَخْطُبُ بَعْدَ الصَّلَاةِ