Mishkat al-Masabih 1578
وَعَنْ يَحْيَى بْنِ سَعِيدٍ قَالَ: إِنَّ رَجُلًا جَاءَهُ الْمَوْتُ فِي زَمَنِ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقَالَ رجل: هيئا لَهُ مَاتَ وَلَمْ يُبْتَلَ بِمَرَضٍ فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «وَيْحَكَ وَمَا يُدْرِيكَ لَوْ أَنَّ اللَّهَ ابْتَلَاهُ بِمَرَضٍ فَكَفَّرَ عَنهُ من سيئاته» . رَوَاهُ مَالك مُرْسلا
From Yahya ibn Saʿid, who said: Death came to a man in the time of the Messenger of Allah ﷺ, and a man said: "How fortunate for him! He died without being afflicted with illness." The Messenger of Allah ﷺ said: "Woe to you! What makes you know? If Allah had afflicted him with illness, He would have expiated some of his bad deeds by it." Reported by Malik in mursal form.