It is narrated from Hazrat Anas bin Malik (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: When a servant is placed in his grave and his companions turn away from him, so that he even hears the sound of their sandals, two angels come to him, make him sit up and ask him about the Prophet (peace and blessings be upon him): "What did you say about this man?" If he is a believer, he says: "I bear witness that he is the servant of Allah and His Messenger." It is said to him: "Look at your place in Hell; Allah has replaced it for you with a place in Paradise." The Messenger of Allah (peace and blessings be upon him) said: So he sees them both. Qatadah (may Allah have mercy on him) said: We were told that his grave is widened for him by seventy cubits and filled with greenery until the Day they are resurrected.
And if he is a disbeliever or a hypocrite, it is said to him: "What did you say about this man?" He says: "I do not know; I used to say what the people said." It is said to him: "You neither knew nor followed." Then he is struck between his ears with an iron hammer, and he lets out a scream that is heard by everything near him except jinn and mankind. Some narrators also say that his grave is made so narrow that his ribs interlock with each other.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 12271