Sunan an-Nasa'i
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."
أَخْبَرَنَا عُبَيْدُ اللَّهِ بْنُ سَعِيدٍ، قَالَ حَدَّثَنَا يَحْيَى، عَنْ عُبَيْدِ اللَّهِ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، عَنْ عُمَرَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " الْمَيِّتُ يُعَذَّبُ بِبُكَاءِ أَهْلِهِ عَلَيْهِ " .
Grade: Sahih (Darussalam)
Reference