What did the Islams do for the zakad?

Donate to charities and the poor.