Answer
Allah, the Exalted, said: ("Indeed, alms are for the poor and the needy, and those who collect them, and for those whose hearts are to be reconciled, and for freeing captives, and for those in debt, and for the cause of Allah, and for the traveler in need. This is an obligation from Allah, and Allah is Knowing and Wise."), At-Tawbah: 60. Therefore, the categories are as follows: The poor: one who has the least, meaning he has something little, and is below the threshold or has a non-growing amount, fully immersed in need: such as a place of residence, clothing for basic needs, tools for a profession, and books of knowledge for those who need them. The needy: one who has nothing and needs to beg for sustenance and what covers his body, and this is permissible for him unlike the poor. The worker of alms is given according to his work, and the one who is in debt is aided in freeing himself from his debt. The debtor who does not own an amount exceeding his debt is a candidate for alms, even if he has money in his hands that does not exceed the debt; because the amount of the debt from his wealth is due to his original need, thus he is considered as if he is non-existent. And in the cause of Allah: this refers to one who is unable to join the army of Islam due to his poverty, having lost his expenses and mount, and so on, even if he has ample wealth at home; as the Prophet (peace be upon him) said: ("As for Khalid, he withheld his arms and equipment for the cause of Allah"), in Sahih al-Bukhari 2: 525. There is no doubt that armor is for war, not for pilgrimage. And the traveler: one who has wealth but does not have it with him. As mentioned in: رد المحتار 2: 59, فتح القدير 2: 202, المحيط البرهاني p.129, and الوقاية p.226.