Traditionally, a Muslim body should be buried in a Muslim cemetery, and no women or children are allowed at the grave site during the burial.
The body should be buried in a hole deep enough to contain the smell as the body decomposes and to keep animals from digging it up, and it's considered desecration to cremate a Muslim corpse. The body goes into the grave on its right side, facing Mecca, ideally not inside of a coffin. If the cemetery is located in a place with abundant wildlife, sometimes Muslims will cover the grave with bricks or stones to keep animals from disturbing the body.
If a Muslim dies at sea, and it's not possible to get the body to land within 24 hours after death, then a burial at sea is allowed.