Sunan an-Nasa'i, Volume 3, Book 21, Hadith 1849 (DarusSalam)

It was narrated from Ibn 'Umar, from 'Umar, that the Prophet said: "The deceased is punished due to the weeping of his family for him."

أَخْبَرَنَا عُبَيْدُ اللَّهِ بْنُ سَعِيدٍ، قَالَ حَدَّثَنَا يَحْيَى، عَنْ عُبَيْدِ اللَّهِ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، عَنْ عُمَرَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ الْمَيِّتُ يُعَذَّبُ بِبُكَاءِ أَهْلِهِ عَلَيْهِ ‏" ‏ ‏.‏

sunnah.com