One day as Ali passed through the market of Kufa he found a slave girl weeping while sitting on the roadside. Ali inquired from the girl as to the cause of her distress. She said that she had purchased some dates from a date seller, but her master had not approved of the dates and when she wanted to return the dates to the date seller he refused to accept them. Ali paid her the amount involved, and asked her to eat the dates herself.
"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