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.
tirmidhi:2558Sufyān b. Wakīʿ from my father > Fuḍayl b. Marzūq > ʿAṭiyyah > Abū Saʿīd Yarfaʿuh

"When it is the Day of Resurrection, Death shall be brought as a mixed black-white ram. It shall be stood between Paradise and the Fire, and then slaughtered while they watch. If anyone were to die of joy, then surely the people of Paradise and the Fire, and then slaughtered while they watch. If anyone were to die of joy, then surely the people of Paradise would die, and if anyone were to die of grief, then surely the people of the Fire would die."  

Abū ʿĪsá said that this Ḥadīth is Ḥasan.
الترمذي:٢٥٥٨حَدَّثَنَا سُفْيَانُ بْنُ وَكِيعٍ حَدَّثَنَا أَبِي عَنْ فُضَيْلِ بْنِ مَرْزُوقٍ عَنْ عَطِيَّةَ عَنْ أَبِي سَعِيدٍ يَرْفَعُهُ قَالَ

إِذَا كَانَ يَوْمُ الْقِيَامَةِ أُتِيَ بِالْمَوْتِ كَالْكَبْشِ الأَمْلَحِ فَيُوقَفُ بَيْنَ الْجَنَّةِ وَالنَّارِ فَيُذْبَحُ وَهُمْ يَنْظُرُونَ فَلَوْ أَنَّ أَحَدًا مَاتَ فَرَحًا لَمَاتَ أَهْلُ الْجَنَّةِ وَلَوْ أَنَّ أَحَدًا مَاتَ حَزَنًا لَمَاتَ أَهْلُ النَّارِ  

قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ

See similar narrations below:

Collected by Suyūṭī
suyuti:2509a

"When it is the Day of Resurrection, Death shall be brought as a mixed black-white ram. It shall be stood between Paradise and the Fire, and then slaughtered while they watch. If anyone were to die of joy, then surely the people of Paradise and the Fire, and then slaughtered while they watch. If anyone were to die of joy, then surely the people of Paradise would die, and if anyone were to die of grief, then surely the people of the Fire would die." (Using translation from Tirmidhī 2558)   

السيوطي:٢٥٠٩a

"إِذا كانَ يوْمُ القيامةِ أُتِى بالموت كأْكبشِ الأمْلَحِ، فيوقَفُ بينَ الجنَّةِ والنَّار، فُيذْبَحُ وهُمْ ينظرونَ، فلو أَنَّ أحدًا ماتَ فرَحًا لماتَ أهْلُ الجنَّةَ، ولو أنَّ أحدًا ماتَ حَزَنًا لماتَ أهْلُ النَّارِ" .  

[ت] الترمذي حسن صحيح عن أبي سعيد