It was narrated from ‘Umar bin Khattab that the Prophet (ﷺ) said:
“The deceased is punished for the wailing over him.”