Death is a very painful and emotional time, yet one that may be filled with hope and mercy. Muslims believe that death is a departure from the life of this world, but not the end of a person's existence. Rather, eternal life is to come, and we pray for God's mercy to be with the departed, in hopes that they may find peace and happiness in the life to come.
In preparation for burial, the family or other members of the community will wash and shroud the body. (If the deceased was killed as a martyr, this step is not performed; martyrs are buried in the clothes they died in.) The deceased will be washed respectfully, with clean and scented water, in a manner similar to how Muslims make ablutions for prayer. The body will then be wrapped in sheets of clean, white cloth (called the kafan). islam.ru