Praise be to Allah
The Eid prayer is one where the imam attends and leads the people in praying two rak’ahs. ‘Umar radhiAllahu ‘anhu said, “The prayer of al-Fitr is two rak’ahs and the prayer of al-Adha is two rak’ahs, complete and not shortened, on the tongue of your Prophet, and the one who fabricates lies is doomed.” Narrated by al-Nasaa’i, 1420 and Ibn Khuzaymah. Classed as saheeh by al-Albaani in Saheeh al-Nasaa’i.
It was narrated that Abu Sa’eed radhiAllahu ‘anhu said: The Messenger of Allah ﷺ used to come out on the day of al-Fitr and al-Adha to the prayer place, and the first thing he would do was to offer the prayer. [Bukhari, 956]
In the first rak’ah he should say Takbeerat al-ihraam (say “Allahu akbar” to start the prayer), after which he should say six or seven more takbeers, because of the hadeeth of ‘Aa’ishah radhiAllahu ‘anha, “The takbeer of al-Fitr and al-Adha is seven takbeers in the first rak’ah and five takbeers in the second, apart from the takbeer of rukoo’.” Narrated by Abu Dawood and classed as saheeh by al-Albaani in Irwa’ al-Ghaleel, 639.
Then he should recite al-Fatihah, and recite Surah Qaf in the first rak’ah. In the second rak’ah he should stand up saying takbeer, and when he has stood up completely he should say takbeer five times, and recite Surah al-Fatihah then Surah al-Qamr. The Prophet ﷺ used to recite these two surahs during the two Eids. Or if he wishes he can recite Surah al-A’la in the first rak’ah and Surah al-Ghashiyah in the second, because it was narrated that the Prophet ﷺ used to recite al-A’la and al-Ghashiyah in the Eid prayer.
The imam should revive the Sunnah by reciting these surahs so that the Muslims will become familiar with the Sunnah.
After the prayer, the imam should address the people. Part of the khutbah should be addressed specifically to the women, telling them of the things that they should do and warning them against the things that they should avoid, as the Prophet ﷺ used to do.
See Fataawa Arkaan al-Islam by Shaykh Muhammad ibn ‘Uthaymeen (may Allah have mercy on him), p. 398; Fataawa al-Lajnah al-Daa’imah, 8/300-316).
The Prayer comes before the Khutbah
One of the rulings of Eid is that the prayer comes before the khutbah, because of the hadeeth of Jaabir ibn ‘Abd-Allah radhiAllahu ‘anhu who said, the Prophet ﷺ came out on the day of al-Fitr and started with the prayer before the khutbah. [Bukhari, 958; Muslim, 885.]
Another indication that the khutbah comes after the prayer is the hadeeth of Abu Sa’eed radhiAllahu ‘anhu who said: The Messenger of Allah ﷺ used to come out to the prayer place on the day of al-Fitr and al-Adha, and the first thing he would start with was the prayer, then he would go and stand facing the people, while the people were sitting in their rows, and he would preach to them and advise them and command them. If he wanted to send out a military expedition he would do so and if he wanted to tell the people to do something he would do so, then he would leave.
Read complete reply at islamqa.info