The Messenger of Allah ﷺ made the zakat of Fitr obligatory, a sa of dates or a sa of barley, upon every free person and slave, male and female, young and old among the Muslims. He commanded that it be paid before the people went out for the prayer.
أخبرنا يحيى بن محمد بن السكن قال حدثنا محمد بن جهضم قال حدثنا إسمعيل بن جعفر عن عمر بن نافع عن أبيه
فرض رسول الله ﷺ زكاة الفطر صاعا من تمر أو صاعا من شعير على الحر والعبد والذكر والأنثى والصغير والكبير من المسلمين وأمر بها أن تؤدى قبل خروج الناس إلى الصلاة
Bukhari narrated it in Zakat, chapter on the obligation of Sadaqat al-Fitr, hadith no. 1503, from Yahya bin Muhammad, through the same chain, and it is also in Kubra, hadith no. 2283.