Sahih al-Bukhari 1290
Sahih al-Bukhari · Book 23: Funerals (Al-Janaa'iz) · The statement of the Prophet ﷺ : "The deceased is punished because of the weeping (with wailing) of some of his relatives, if wailing was the custom of that dead person."
Narrated Abu Burda:
حَدَّثَنَا إِسْمَاعِيلُ بْنُ خَلِيلٍ ، حَدَّثَنَا عَلِيُّ بْنُ مُسْهِرٍ ، حَدَّثَنَا أَبُو إِسْحَاقَ ـ وَهْوَ الشَّيْبَانِيُّ ـ عَنْ أَبِي بُرْدَةَ ، عَنْ أَبِيهِ ، قَالَ لَمَّا أُصِيبَ عُمَرُ ـ رضى الله عنه ـ جَعَلَ صُهَيْبٌ يَقُولُ وَاأَخَاهُ. فَقَالَ عُمَرُ أَمَا عَلِمْتَ أَنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ " إِنَّ الْمَيِّتَ لَيُعَذَّبُ بِبُكَاءِ الْحَىِّ " .
That his father said, "When `Umar was stabbed, Suhaib started crying: O my brother! `Umar said, 'Don't you know that the Prophet (ﷺ) said: The deceased is tortured for the weeping of the living'?"