Soon after a person dies, it is recommended to do the following things:
Close the eye-lids of the dead person
Close the mouth of the dead person
Tie the two jaws so that the mouth does not open
Straighten his/her arms and place them on the two sides of his body
Straighten his/her legs
Cover the dead body
Switch on the light in the room where the dead body is kept
Arrange the funeral as soon as possible
Inform the mu’mineen to attend the funeral.
Adapted from: "What you should Do just before Death" by: "Sayyid Muhammad Rizvi"