Source: Mission Islam
The Prophet of Allaah (salAllaahu alayhi wa sallam) said:
“When a deceased person is laid in his grave, he hears the sound of the footsteps of people as they go away. If he is a believer, the prayer will stand by his head, the fasting will be to his right, alms to his left, and all other good deeds of charity, kindness to relations, and good behavior will be by his feet.”
Then two fearsome, dread-inspiring angels, called Munkar and Nakeer, visit the soul to ask it about its religion, God, and Prophet. The believing soul sits upright in its grave as Allaah (subhaanahu wa ta’aala) grants it the strength to answer the angels with full faith and certainty.