The celebration of Eid ul-Fitr culminates a month of fasting wherein the faithful have spent their time praying and beseeching Allah for forgiveness and mercy. For many, Ramadan was not just an abstention from food and drink. Rather, it was an exercise in patience and discipline. Eid is the celebration for those who fasted and obeyed Allah’s rules and teachings. It is for those who spent the month of Ramadan in complete devotion to Allah. Eid is a time when the entire Muslim community comes together to share in each others joy and blessings and also to lessen the burden of those who may be suffering.
Since Eid al-Fitr is the day on which Muslims break their Ramadan fast, it is preferable to eat before going to the Eid prayer. It is a Sunnah of the Prophet (ﷺ) to eat an odd number of dates before going to pray salat al-Eid.
Anas bin Malik narrated:
Allah’s Messenger (ﷺ) never proceeded (for the prayer) on the Day of `Id-ul-Fitr unless he had eaten some dates. Anas also narrated: The Prophet (ﷺ) used to eat odd number of dates. 
It is preferred to make ghusl (take a bath), wear one’s best clothes and, for men, to wear perfume before going to Salat al-Eid. Ibn al-Qayyim wrote: “The Prophet (ﷺ) used to wear his best clothes for the Eid prayers and he had clothes that he reserved for the two Eids and Jumuah.”
Umm ‘Atiyya reported:
Eid prayer is wajib. It consists of two Rakaat (units) with six or thirteen additional Takbirs. It must be offered in congregation. The prayer is followed by the Khutbah.
Ibn `Abbas narrated:
The Prophet (ﷺ) offered a two rak`at prayer on the Day of Id ul Fitr and he did not pray before or after it. Then he went towards women along with Bilal and ordered them to pay alms and so they started giving their earrings and necklaces (in charity). 
The Prophet (ﷺ) went out and offered a two rak`at prayer on the Day of `Id ul Fitr and did not offer any other prayer before or after it and at that time Bilal was accompanying him. 
‘Abdullah b. ‘Umar reported that (his father) ‘Umar b. Khattab asked Abu Waqid al-Laithi what the Messenger of Allah (ﷺ) used to recite on ‘Id-ul-Adha and ‘Id-ul-Fitr. He said:
 Sahih Al-Bukhari, Book of the Two Eids, Chapter 4
 Jami-al-Tirimidhi, Chapter on Fasting, Vol. 2, Hadith No. 772
 Sahih Muslim, Book of Prayer-Two Eids, Chapter 1
 Sahih Al-Bukhari, Book of the Two Eids, Chapter 8
 Sahih Al-Bukhari, Book of the Two Eids, Chapter 26
 Sahih Muslim, Book of Prayer-Two Eids, Chapter 3