And it is narrated from Ibn Abbas (may Allah be pleased with them both) that one can free a slave from his zakat and can give it for Hajj. And Imam Hasan al-Basri (may Allah have mercy on him) said that if someone buys himself, being a slave,