According to a hadith attributed to Anas ibn Malik, a companion of the Prophet Muhammad, the two festivals of Eid al-Fitr and Eid al-Adha were instituted by the Prophet after his journey from Mecca to Medinah.
“When the Prophet arrived in Medinah, he found people celebrated two specific days in which they used to entertain themselves with recreation and merriment. He asked them about the nature of these festivities to which they replied that these days were occasions of fun and recreation. At this, the Prophet remarked that the Almighty has fixed two days [of festivity] instead of these for you which are better than these: Eid al-Fitr and Eid al-Adha.
The first Eid al-Fitr was celebrated in 624 CE by the Prophet Muhammad and his companions after the victory of the battle of Jang-e-Badar.
To mark the beginning of Eid and in accordance with the Sunnah, or practices of the Prophet Muhammad, many Muslims wake up early in the morning and pray Salat ul-Fajr, or the pre-dawn prayer. After brushing their teeth, taking a bath and wearing perfume, they have breakfast before heading off to perform special congregational prayers known as Salaat al-Eid. Many Muslims recite the takbir, a declaration of faith, on the way to the prayer ground and give special charitable contributions known as Zakat al-Fitr.
Eid al-Fitr is a day of great merriment and thanksgiving. Muslims celebrate by gathering with friends and family, preparing sweet delicacies, wearing new clothes, giving each other gifts and putting up lights and other decorations in their homes. A common greeting during this holiday is Eid Mubarak, which means, “Have a blessed Eid!”