God says
When [they perceived Qarun’s arrogance,] his people said unto him: “Exult not [in thy wealth], for, verily, God does not love those who exult [in things vain]! Seek instead, by means of what God has granted thee, [the good of] the life to come,* without forgetting, withal, thine own [rightful] share in this world;** and do good [unto others] as God has done good unto thee; and seek not to spread corruption on earth: for, verily, God does not love the spreaders of corruption!”-- Q.28: 76,77
* I.e., by spending in charity and on good causes.
** Lit., “and do not forget …”, etc.: a call to generosity and, at the same time, to moderation (cf. 2: 143 – “We have willed you to be a community of the middle way”)
….and (God-conscious would assign) in their wealth and possessions the due share unto such as might ask [for help] and such as might suffer privation.* -- Q.51:19
* Sc., “but could not beg” – and this applies to all living creatures, whether human beings or mute animals (Razi), irrespective of whether the need is of a physical or of an emotional nature.
Prophet said
1. “Whoever seeks shelter from you in the name of God, give him shelter;
whoever begs in the name of God, give him;…”-- H: Abu Daud, Ahmad and Nisai. N: Ibn Omar.
2. “The best charity is that which is given when one is not (even) wealthy; and begin (charity) first with relatives”– H: Bukhari and Muslim. N: Abu Hurairah and Hakeem-b-Hezam.
3. “The generous man is near God, near paradise, near people and is far off from hell….”-- H: Tirmizi. N: Abu Hurairah.