Language:
كتاب المرضى
75  
Patients
(3)
Chapter: Most prone to trials are Prophets, then the most pious, and then the less pious
(3)
باب أَشَدُّ النَّاسِ بَلاَءً الأَنْبِيَاءُ ثُمَّ الْأَمْثَلُ فَالْأَمْثَلُ
Sahih al-Bukhari 5648

Narrated `Abdullah:

I visited Allah's Messenger (ﷺ) while he was suffering from a high fever. I said, "O Allah's Messenger (ﷺ)! You have a high fever." He said, "Yes, I have as much fever as two men of you." I said, "Is it because you will have a double reward?" He said, "Yes, it is so. No Muslim is afflicted with any harm, even if it were the prick of a thorn, but that Allah expiates his sins because of that, as a tree sheds its leaves."

حَدَّثَنَا عَبْدَانُ، عَنْ أَبِي حَمْزَةَ، عَنِ الأَعْمَشِ، عَنْ إِبْرَاهِيمَ التَّيْمِيِّ، عَنِ الْحَارِثِ بْنِ سُوَيْدٍ، عَنْ عَبْدِ اللَّهِ، قَالَ دَخَلْتُ عَلَى رَسُولِ اللَّهِ صلى الله عليه وسلم وَهْوَ يُوعَكُ فَقُلْتُ يَا رَسُولَ اللَّهِ إِنَّكَ تُوعَكُ وَعْكًا شَدِيدًا‏.‏ قَالَ ‏"‏ أَجَلْ إِنِّي أُوعَكُ كَمَا يُوعَكُ رَجُلاَنِ مِنْكُمْ ‏"‏‏.‏ قُلْتُ ذَلِكَ أَنَّ لَكَ أَجْرَيْنِ قَالَ ‏"‏ أَجَلْ ذَلِكَ كَذَلِكَ، مَا مِنْ مُسْلِمٍ يُصِيبُهُ أَذًى شَوْكَةٌ فَمَا فَوْقَهَا، إِلاَّ كَفَّرَ اللَّهُ بِهَا سَيِّئَاتِهِ، كَمَا تَحُطُّ الشَّجَرَةُ وَرَقَهَا ‏"‏‏.‏
Reference : Sahih al-Bukhari 5648
In-book reference : Book 75, Hadith 8
USC-MSA web (English) reference : Vol. 7, Book 70, Hadith 551
  (deprecated numbering scheme)