One night Ali saw the Holy Prophet in a dream. He complained to the Holy Prophet that he had received much trouble from his people. The Holy Prophet said that he might invoke the curse of God on them. When it was day, be lifted his hands after the Morning Prayer and said: "O God. Give me a better people, and give these people a worse ruler then me".
"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