This is what happens based on my beliefs :
When the ruh (soul) is taken out, the eyesight follows it.
After the burial each person is interrogated in the grave by two angels, called Munkar and Nakir, appointed by God to question the dead in order to test their faith.
The righteous believers answer correctly and live in peace and comfort while the sinners and disbelievers fail and punishments ensue.
After the questioning, depending on the state of the soul, the deceased will undergo different journeys.
The sinner's or disbelievers will meet the harsh angels which will take position in front of him.
Thereupon they tell the soul to come out to the wrath of God. Being terrified, the soul desperately tries to hide itself in the body.
Thereupon, the angels of death starts beating the soul and extracts it from the body in a most painful way.
The painful process of taking out a sinner's soul has been compared with "the dragging of an iron skewer through moist wool, tearing the veins and sinews."
The soul of the sinner is then wrapped in a dirty cloth which emits bad smell. Carrying the soul, the angels head towards the heaven. On the way, other angels inquire about this wicked soul.
They are told that this is the soul of that and that sinner person. The angels then arrive at the upper heaven, but its doors are not opened for the evil soul.
Consequently, the soul is then thrown into hell or underworld, where it is punished until the Day of Judgment.
On the other hand, when a righteous believer dies, bright-faced angels from heaven descends with divine perfume and shroud.
Then the angels of death comes, and tells the soul to come out to the pleasure and mercy of God. The soul is then extracted as easily as water comes out from the pitcher.
The soul is then wrapped in the perfumed shroud and is taken up to the seventh heaven where God declares: 'write down his name and take him back to earth.
I created him from earth, and I will raise him second time from this very earth.' The soul is then pushed back into the body and is interrogated by two angels called Munkar and Nakir.
He succeeds in answering the questions, and is blessed with heavenly rewards.