As soon as a Muslim person dies, it's customary to close the eyes, bind the jaw and cover the body with a clean sheet. It's also important to prepare the body for the funeral as quickly as possible. Ideally, the funeral will take place before the next sunset or within 24 hours.
While there are Muslims who believe that it's important to make sure that the body faces toward Mecca, and that you should place a copy of the Quran under the deceased person's head, these traditions are controversial. Some scholars say that there is no precedent for doing these things.
As we'll see next, there are even rules for mourning the dead, including special rules for widows.