"Every soul will taste death, and you will only be given your [full] compensation on the Day of Resurrection. So he who is drawn away from the Fire and admitted to Paradise has attained [his desire]. And what is the life of this world except the enjoyment of delusion."  Quran 3:185  

It is requested that Muslims become familiar with these issues at all times since death can approach anyone at any given time or place.

 

When a Muslim is Dying

It is recommended by the prophet Muhammad (S.A.W.) to do the following:

The dying person should be asked to pronounce, "Laa ilaaha illal Lah." (There is no God but Allah.) before death. The prophet Muhammad (S.A.W.) said: "Ask your dying fellows to pronounce, "Laa ilaaha illal Lah." (There is no God but Allah.)" [Reported by Imams Muslim, Abu Dawood, At-Tirmithi, An-Nisa'I and Ibn Majah] The prophet Muhammad (S.A.W.) said: "The one whose last words are "Laa Ilaaha Illal Lah." (There is no God but Allah) will enter Paradise." [Reported by Imams Abu Dawood]

 

When a Muslim has Died                       

When the person is confirmed dead, family members or those who are present should:

The messenger of Allah went to see Abu-Salama after he died; he found his eyes open, so the prophet Muhammad (S.A.W.) closed them and said: "When the soul is retrieved, the sight follows it." [Reported by Imam Muslim]

The prophet Muhammad (S.A.W.) upon his death was wrapped with a piece of striped cloth. [Reported by Imams Bukhari and Muslim]

The prophet Muhammad (S.A.W.) said: "The believer's soul is attached to his debt until it is paid," [Reported by Imams Ahmad, Ibn Majah, and At-Tirmithi] meaning that the dead person's soul will not rest until his debt is paid.

 

Procedure

Preparing the dead for burial is a "Fard Kifayah" duty, meaning that if some Muslims properly carry out this duty, then other Muslims are exempt from the responsibility. Preparing the dead for burial consists of the following: Bathing the dead, wrapping the body with a shroud, praying for the dead, and burying the body. Here at the Darul Arqum Islamic Center, the Cemetery and Burial Committee will make all the necessary arrangements in consultation with the family members of the deceased. 

Source: Authentic Step by Step Illustrated Janazah Guide