The Prophet (ﷺ) ordered the people to pay Zakat-ul-Fitr before going to the `Id prayer.

Sahih al-Bukhari Book 24 Hadith 110

Sahih al-Bukhari #1509

Obligatory Charity Tax (Zakat) 24:110

Narrated Ibn `Umar:

The Prophet (ﷺ) ordered the people to pay Zakat-ul-Fitr before going to the `Id prayer.

Chapter: Sadaqat-ul-Fitr is to be given before the 'Eid prayers

Grade: Sahih