It is related that at one time while the Holy Prophet and Ali were offering prayers in a mosque, a supplicant came and said, "O God, bear witness that I have asked everyone of the congregation to give me something in alms, but none has offered anything." Ali, who was prostrating on the prayer mat at that time, held out his finger which bore a gold ring, and pointed it out towards the beggar, who took it off.
"When a person dies, his works end, except for three: ongoing charity, knowledge that is benefited from, and a righteous child who prays for him."
Prophet Mohammed (PBUH)
"The best of what a man leaves behind are three: a righteous child who supplicates for him, ongoing charity the reward of which reaches him, and knowledge that is acted upon after him."
Sunan Ibn Mājah
"Every day two angels come down from Heaven and one of them says, 'O Allah! Compensate every person who spends in Your Cause,' and the other (angel) says, 'O Allah! Destroy every miser.'"
Sahih Bukhari