When the spirit leaves the body, the human body cannot do anything. Just waiting for the time to be put into the grave.
When the body is already in the tomb, of course the dead human body will rot. But there are some people whose bodies do not experience decay.
And these are 10 groups of human bodies that will not rot,
The bodies of the prophets and messengers of God
The body of the Fisabilillah jihad expert
The body of the ulema of the clergy who upheld the sentence of Allah
The body of a martyr who always fights for Islam
The corpse of memorizing the Qur'an and charity with the Qur'an
The body of a fair leader in upholding the law of God
The body of a caller who does not ask for compensation
The body of a woman who died while giving birth to a child and always obeyed God's commands
The body of a person who was killed or tortured for maintaining self-respect and religion
The bodies of people who die during the day or on Friday night if they are from among believers who always keep the obligations that God has commanded when living in the world
(Hadis by Bukhari Muslim).