I visited the Prophet ﷺ during his illness and touched him while he was having a fever. I said to him, "You have a high fever; is it because you will get a double reward?" He said, "Yes. No Muslim is afflicted with any harm, but that his sins will be annulled as the leave of a tree fall down."
أَتَيْتُ النَّبِيَّ ﷺ فِي مَرَضِهِ فَمَسِسْتُهُ وَهْوَ يُوعَكُ وَعْكًا شَدِيدًا فَقُلْتُ إِنَّكَ لَتُوعَكُ وَعْكًا شَدِيدًا وَذَلِكَ أَنَّ لَكَ أَجْرَيْنِ قَالَ أَجَلْ وَمَا مِنْ مُسْلِمٍ يُصِيبُهُ أَذًى إِلاَّ حَاتَّتْ عَنْهُ خَطَايَاهُ كَمَا تَحَاتُّ وَرَقُ الشَّجَرِ