Narrated Anas (Radi Allahu anhu):
The Prophet (SalAllahu alaihi wasallam) said, "When a human being is laid is his grave and his companions return and he even hears their footsteps, two angels come to him and make him sit and ask him: 'What did you use to say about this man, Muhammad (SalAllahu alaihi wasallam)?' He will say: 'I testify that he is Allah's Slave and His Messenger.' Then it will be said to him, 'Look at your place in the Hell-Fire, Allah has changed for you a place in Paradise instead of it.'"
The prophet (SalAllahu alaihi wasallam) added, "The dead person will see both his places.
But a disbeliever or a hypocrite will say to the angels, 'I do not know, but I used to say what the people used to say!' It will be said to him, 'Neither did you know nor did you take the guidance (by following the Qur'an).'
Then he will be hit with an iron hammer between his two ears, and he will cry and that cry will be heard by whatsoever near to him except human beings and jinn."
Sahih Al-Bukhari, 2/1338
The Prophet (SalAllahu alaihi wasallam) said, "When a human being is laid is his grave and his companions return and he even hears their footsteps, two angels come to him and make him sit and ask him: 'What did you use to say about this man, Muhammad (SalAllahu alaihi wasallam)?' He will say: 'I testify that he is Allah's Slave and His Messenger.' Then it will be said to him, 'Look at your place in the Hell-Fire, Allah has changed for you a place in Paradise instead of it.'"
The prophet (SalAllahu alaihi wasallam) added, "The dead person will see both his places.
But a disbeliever or a hypocrite will say to the angels, 'I do not know, but I used to say what the people used to say!' It will be said to him, 'Neither did you know nor did you take the guidance (by following the Qur'an).'
Then he will be hit with an iron hammer between his two ears, and he will cry and that cry will be heard by whatsoever near to him except human beings and jinn."
Sahih Al-Bukhari, 2/1338
