عَنْ أَنَسِ بْنِ مَالِكَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ: ((إِنَّ أَعْمَالَكُمْ تُعْرَضُ عَلَى أَقَارِبِكُمْ وَعَشَائِرِكُمْ مِنَ الْأَمْوَاتِ، فَإِنْ كَانَ خَيْرًا اسْتَبْشَرُوا بِهِ وَإِنْ كَانَ غَيْرَ ذَلِكَ قَالُوا: اللَّهُمَّ لَا تُمِتْهُمْ حَتَّى تَهْدِيَهُمْ كَمَا هَدَيْتَنَا))
It is narrated from Sayyiduna Anas bin Malik, may Allah be pleased with him, that the Noble Prophet, peace and blessings be upon him, said: Your deeds are presented before your deceased relatives; if the deeds are good, they become happy, and if they are not good, they say: O Allah! Do not give death to these people until You guide them as You guided us.