The Messenger of Allah ﷺ as saying: The dead is punished because of his family's weeping for him. When this was mentioned to 'Aishah, she said: Ibn 'Umar forgot and made a mistake. The Prophet ﷺ passed by grave and he said: The man in the grave is being punished while his family is weeping for him. She then recited: "No bearer of burdens can bear the burden of another." The narrator Abu Mu'awiyyah said: (The Prophet passed) by the grave of a Jew. (Using translation from Abū Dāʾūd 3129)
عَنِ النَّبِيِّ ﷺ أَنَّهُ قَالَ إِنَّ الْمَيِّتَ لَيُعَذَّبُ بِبُكَاءِ أَهْلِهِ عَلَيْهِ فَذُكِرَ ذَلِكَ لِعَائِشَةَ فَقَالَتْ وَهِلَ يَعْنِي ابْنَ عُمَرَ إِنَّمَا مَرَّ رَسُولُ اللهِ ﷺ عَلَى قَبْرٍ فَقَالَ إِنَّ صَاحِبَ هَذَا لَيُعَذَّبُ وَأَهْلُهُ يَبْكُونَ عَلَيْهِ ثُمَّ قَرَأَتْ هَذِهِ الْآيَةَ {وَلَا تَزِرُ وَازِرَةٌ وِزْرَ أُخْرَى} [الأنعام 164]