Sunan Ibn Majah, Book 6, Hadith 161 (Ibn Majah 1593)

It was narrated from ‘Umar bin Khattab that the Prophet (ﷺ) said:

“The deceased is punished for the wailing over him.”