Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ibnhibban:3136b

[Machine] "We went out with Umar until we were in the open desert. Then, we saw someone riding in the shade of a tree. Umar said, 'O Abdullah ibn Abbas, see who the rider is.' So, I went and found that it was Suhaib, and his family was with him. He asked me to pray for him, so I accompanied him until we entered the city. Then, Umar was injured and he said, 'Where is his brother and his companion?' Umar said, 'O Suhaib, do not cry, for I heard the Messenger of Allah ﷺ saying, 'The deceased is punished by the weeping of his family over him.'"  

ابن حبّان:٣١٣٦bundefined

خَرَجْنَا مَعَ عُمَرَ حَتَّى إِذَا كُنَّا بِالْبَيْدَاءِ إِذَا رَاكِبٌ فِي ظِلِّ شَجَرَةٍ فَقَالَ يَا عَبْدَ اللَّهِ بْنَ عَبَّاسٍ انْظُرْ مَنِ الرَّاكِبُ فَجِئْتُ فَإِذَا صُهَيْبٌ مَعَهُ أَهْلُهُ فَقَالَ لِيَ ادْعُ لِي صُهَيْبًا فَصَحِبَهُ حَتَّى دَخَلَ الْمَدِينَةَ فَأُصِيبَ عُمَرُ فَقَالَ وَاأَخَاهُ وَاصَاحِبَاهُ فَقَالَ عُمَرُ ؓ يَا صُهَيْبُ لَا تَبْكِي فَإِنِّي سَمِعْتُ رَسُولَ اللَّهِ ﷺ يَقُولُ «يُعَذَّبُ الْمَيِّتِ بِبُكَاءِ أَهْلِهِ عَلَيْهِ»