It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Noble Prophet (peace and blessings be upon him) commanded that charity (Zakat al-Fitr) should be given before going out to the Eid prayer ground.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 6389