Jami` at-Tirmidhi, Book 10, Hadith 38 (Tirmidhi 1004)

Umar bin Al-Khattab narrated that:

The Messenger of Allah said: "The deceased is punished for the crying of his family over him."