It is narrated from Sayyidah Asma' bint Abi Bakr (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "The believer sits up in his grave when the people who attended (his funeral) turn away from him. Then he is asked: 'What about the man who is called Muhammad (peace and blessings be upon him), what is he?' If he is a believer, he says: 'He is the servant of Allah and His Messenger.' Then it is said to him: 'Sleep, may your eyes sleep (in peace).' And if he (the deceased) is not a believer, he says: 'By Allah, I do not know; I heard people saying something, so I said it too, and they engaged in (idle) argument, so I engaged in it too.' Then it is said to him: 'May your eyes never sleep (may you never find rest).'"
No one narrated this hadith from Abu al-Aswad except Ibn Lahi'ah (may Allah have mercy on him).
Hadith Referenceالمعجم الأوسط / باب الباء / 3182
Hadith Takhrij«أخرجه الطبراني فى «الكبير» برقم: 230»