The angels Munkar and Nakeer question one in the grave. There are differing words about what they will ask about Rasulullah (peace and blessings of Allaah be upon him). One narration says, 'What do you say about this man?' and one says, 'Who is this man who was sent among you' and there are others. The angels will question in different manners depending on the person. The angels talk for longer or shorter periods of time depending on the person as in some Hadiths additional question or remarks are present. And Allah knows best.
Part of long hadith narrated by Abu Dawood, 4753
So his soul is returned to his body and there come to him two angels who make him sit up and they say to him, ‘Who is your Lord?’ He says, ‘Allaah.’ They say, ‘What is your religion?’ He says, ‘My religion is Islam.’ They say, ‘Who is this man who was sent among you?’ He says, ‘He is the Messenger of Allaah (peace and blessings of Allaah be upon him).’ They say, ‘What did you do?’ He says, ‘I read the Book of Allaah and I believed in it.’ Then a voice calls out from heaven, ‘My slave has spoken the truth, so prepare for him a bed from Paradise and clothe him from Paradise, and open for him a gate to Paradise.’ Then there comes to him some of its fragrance, and his grave is made wide, as far as he can see.
Some people think, 'I'll be a profligate and just learn these answers by heart and enter Jannah'. That world is different to this world; the heart will speak what it contained. A person will answer according to what his actions were.
Question 1
Question 2
Question 3
Question 3 [version 2]
Additional Question 4 [as found in above Hadith mubaarakah]