Alms are only for : the poor and the destitute , for those who collect zakat , for conciliating people 's hearts , for freeing slaves , for those in debt , for spending for God 's cause , and for travellers in need . It is a legal obligation enjoined by God .