It is better to eat something before going out for Eid al-Fitr, and not to eat before going out for Eid al-Adha
➊ It is narrated from Buraydah (may Allah be pleased with him) that:
كان النبى صلى الله عليه وسلم لا يخرج يوم الفطر حتى يطعم ولا يطعم يوم الأضحى حتى يصلى
“The Prophet ﷺ would not go out on the day of Eid al-Fitr until he had eaten something, and on the day of Eid al-Adha he would not eat anything until he had prayed.”
➋ It is narrated from Anas (may Allah be pleased with him) that:
كان رسول الله صلى الله عليه وسلم لا يغدو يوم الفطر حتى يأكل تمرات وياكلهن و ترا
“The Messenger of Allah ﷺ used to eat a few dates before going out for the Eid al-Fitr prayer, and he used to eat an odd number of dates.”