Sunan an-Nasa'i, Book 21, Hadith 36 (Nasa'i 1858)

It was narrated that 'Umar said:

"I heard the Messenger of Allah say: 'The deceased is punished in his grave due to the wailing over him."'