(32) باب قَوْلِ النَّبِيِّ صلى الله عليه وسلم: «يُعَذَّبُ الْمَيِّتُ بِبَعْضِ بُكَاءِ أَهْلِهِ عَلَيْهِ» إِذَا كَانَ النَّوْحُ مِنْ سُنَّتِهِ
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."
Reference: Sahih al-Bukhari 1289
In-book reference: Book 23, Hadith 48
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 2, Book 23, Hadith 376