When someone who follows the religion of Islam dies, their family and friends will have what is called an Islamic funeral. This is a special way to say goodbye to the person and help them get ready for the afterlife.
The first thing that happens is that the body is washed and wrapped in a special cloth called a shroud. This is done by people who are trained to do it and is called Ghusl. The body is then placed on a wooden board called a bier and taken to the mosque where people gather to pray and remember the person who has died.
When the body reaches the mosque, it is placed in front of the congregation and people line up in rows behind it. This is called a Janazah prayer, and it is led by the Imam, who is like the leader of the mosque. Everyone prays together, asking God to forgive the person who has died and to bless them in the afterlife.
After the prayer is over, the body is taken to a cemetery for burial. There, it is placed in a grave facing towards Mecca (a holy city in Saudi Arabia). The grave is then covered with dirt by family members and loved ones.
Before leaving the cemetery, people may take the time to stay and offer condolences to the family. They may say things like "I'm sorry for your loss" or "May God give you patience during this difficult time."
Overall, an Islamic funeral is a way for people who follow the religion of Islam to pay their respects to someone who has died and to help them prepare for the next life.