When the son of Adam dies and his soul departs and he is placed in his grave , then he is in the first stage of the Hereafter, because the grave is the first of the stages of the Hereafter .
Haani, the freed slave of ‘Uthman ibn ‘Affan, said: when ‘Uthman ibn ‘Affan stood by a grave he would weep until his beard became wet. It was said to him, “You remember Paradise and Hell and you do not weep, but you weep because of this?” He said, “The Messenger of Allah (peace and blessings of Allah be upon him) said: ‘The grave is the first of the stages of the Hereafter; whoever is saved from it, whatever comes afterwards will be easier for him, but if he is not saved from it, what comes afterwards will be worse for him.’” And the Messenger of Allah (peace and blessings of Allah be upon him) said: “I have never seen any scene but the grave is more frightening than it.” (Narrated by al-Tirmidhi, 2308; Ibn Majah, 4567; classed as hasan by al-Albani in Sahih al-Jami’, 1684).
The two angels who are charged with questioning come to him and ask him what he used to believe in in this world, who was his Lord, what was his religion and who was his Prophet. If he gives a good answer, that is good, but if he does not answer them they inflict a severe and painful beating on him.
If he was one of the righteous, angels with white faces come to him, but if he was one of the evildoers, angels with dark faces come to him. This is the fitnah or tribulation that he suffers.