Sahih al-Bukhari 1289
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 `Aisha:
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ ، أَخْبَرَنَا مَالِكٌ ، عَنْ عَبْدِ اللَّهِ بْنِ أَبِي بَكْرٍ ، عَنْ أَبِيهِ ، عَنْ عَمْرَةَ بِنْتِ عَبْدِ الرَّحْمَنِ ، أَنَّهَا أَخْبَرَتْهُ أَنَّهَا، سَمِعَتْ عَائِشَةَ ـ رضى الله عنها ـ زَوْجَ النَّبِيِّ صلى الله عليه وسلم قَالَتْ إِنَّمَا مَرَّ رَسُولُ اللَّهِ صلى الله عليه وسلم عَلَى يَهُودِيَّةٍ يَبْكِي عَلَيْهَا أَهْلُهَا فَقَالَ " إِنَّهُمْ لَيَبْكُونَ عَلَيْهَا، وَإِنَّهَا لَتُعَذَّبُ فِي قَبْرِهَا " .
(the wife of the Prophet) Once Allah's Messenger (ﷺ) passed by (the grave of) a Jewess whose relatives were weeping over her. He said, "They are weeping over her and she is being tortured in her grave."