Sunan an-Nasa'i, Book 21, Hadith 31 (In-Book)

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