Arabic hadith text
وَحَدَّثَنِي عَنْ مَالِكٍ، عَنْ يَحْيَى بْنِ سَعِيدٍ، أَنَّ رَجُلاً، جَاءَهُ الْمَوْتُ فِي زَمَانِ رَسُولِ اللَّهِ صلى الله عليه وسلم فَقَالَ رَجُلٌ هَنِيئًا لَهُ مَاتَ وَلَمْ يُبْتَلَ بِمَرَضٍ ‏.‏ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ وَيْحَكَ وَمَا يُدْرِيكَ لَوْ أَنَّ اللَّهَ ابْتَلاَهُ بِمَرَضٍ يُكَفِّرُ بِهِ مِنْ سَيِّئَاتِهِ ‏"‏ ‏.‏
Translation

Yahya related to me from Malik from Yahya ibn Said that deathcame to a man in the time of the Messenger of Allah, may Allah blesshim and grant him peace. A man said, "He was fortunate," as he haddied without being tried by illness. The Messenger of Allah, may Allahbless him and grant him peace, said, "Alas for you, what will let youknow that if Allah had tried him with illness, He would have wiped outhis wrong actions."