Saʿd bin 'Ubada became sick and the Prophet ﷺ along with ʿAbdur Rahman bin ʿAuf, Saʿd bin Abi Waqqas and ʿAbdullah bin Masʿud visited him to inquire about his health. When he came to him, he found him surrounded by his household and he asked, "Has he died?" They said, "No, O Allah's Apostle." The Prophet ﷺ wept and when the people saw the weeping of Messenger of Allah ﷺ they all wept. He said, "Will you listen? Allah does not punish for shedding tears, nor for the grief of the heart but he punishes or bestows His Mercy because of this." He pointed to his tongue and added, "The deceased is punished for the wailing of his relatives over him." ʿUmar used to beat with a stick and throw stones and put dust over the faces (of those who used to wail over the dead). (Using translation from Bukhārī 1304)
أَنَّهُ قَالَ اشْتَكَى سَعْدُ بْنُ عُبَادَةَ شَكْوَى لَهُ فَأَتَاهُ رَسُولُ اللهِ ﷺ يَعُودُهُ مَعَ عَبْدِ الرَّحْمَنِ بْنِ عَوْفٍ وَسَعْدِ بْنِ أَبِي وَقَّاصٍ وَعَبْدِ اللهِ بْنِ مَسْعُودٍ فَلَمَّا دَخَلَ عَلَيْهِ وَجَدَهُ فِي غَشْيَةٍ فَقَالَ أَقَدْ قَضَى؟ فَقَالُوا لَا يَا رَسُولَ اللهِ فَبَكَى رَسُولُ اللهِ ﷺ فَلَمَّا رَأَى الْقَوْمُ بُكَاءَ رَسُولِ اللهِ ﷺ بَكَوْا فَقَالَ أَلَا تَسْمَعُونَ أَنَّ اللهَ لَا يُعَذِّبُ بِدَمْعِ الْعَيْنِ وَلَا بِحُزْنِ الْقَلْبِ وَلَكِنْ يُعَذِّبُ بِهَذَا وَأَشَارَ إِلَى لِسَانِهِ أَوْ يَرْحَمُ