Allah's Messenger (ﷺ) made it incumbent on all the slave or free Muslims, male or female…

Sahih al-Bukhari Book 24 Hadith 105

Sahih al-Bukhari #1504

Obligatory Charity Tax (Zakat) 24:105

Narrated Ibn `Umar:

Allah's Messenger (ﷺ) made it incumbent on all the slave or free Muslims, male or female, to pay one Sa' of dates or barley as Zakat-ul-Fitr.

Chapter: Sadaqat-ul-Fitr on the free or slave Muslims

Grade: Sahih