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.
malik:50-8Mālik > Yaḥyá b. Saʿīd

Yahya related to me from Malik from Yahya ibn Said that death came to a man in the time of the Messenger of Allah ﷺ. A man said, "He was fortunate," as he had died without being tried by illness. The Messenger of Allah ﷺ said, "Alas for you, what will let you know that if Allah had tried him with illness, He would have wiped out his wrong actions."  

مالك:٥٠-٨وَحَدَّثَنِي عَنْ مَالِكٍ عَنْ يَحْيَى بْنِ سَعِيدٍ

أَنَّ رَجُلاً جَاءَهُ الْمَوْتُ فِي زَمَانِ رَسُولِ اللَّهِ ﷺ فَقَالَ رَجُلٌ هَنِيئًا لَهُ مَاتَ وَلَمْ يُبْتَلَ بِمَرَضٍ فَقَالَ رَسُولُ اللَّهِ ﷺ وَيْحَكَ وَمَا يُدْرِيكَ لَوْ أَنَّ اللَّهَ ابْتَلاَهُ بِمَرَضٍ يُكَفِّرُ بِهِ مِنْ سَيِّئَاتِهِ