Son, I have presented to you a picture of the world. I have given you an account of its insignificance. So it is for you to keep this in mind and act accordingly. The people who have tested the world do not feel distressed on leaving it they are in fact like persons who migrate from a famine struck land to land of plenty. These people bear the ordeal of the journey, and separation from friends and relatives so that they may arrive at a land where they can enjoy plenty. Their every step is a step forward bringing them closer to their destination. The people who are attached to the world cannot bear separated from it. They are like those people who leave a land of plenty for a famine struck land. Their journey would be most troublesome and their end would be most tragic.
"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