Like Jews and Christians, Muslims believe that the present life is only a trial preparation for the next realm of existence. Basic articles of faith include: the Day of Judgement, resurrection, Heaven and Hell. When a Muslim dies, he or she is washed, usually by a family member, wrapped in a clean white cloth, and buried with a simple prayer preferably the same day. Muslims consider this one of the final services they can do for their relatives, and an opportunity to remember their own brief existence here on earth. The Prophet (SAW) taught that three things can continue to help a person even after death; charity which he had given, knowledge which he had taught and prayers on their behalf by a righteous child.
"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