HAKIM 1278:
from Abū Bakr b. Isḥāq al-Faqīh And ʿAlī b. Ḥamshādh al-ʿAdl —
[Machine] "The Messenger of Allah ﷺ suffered from a headache, so he kept turning on his bed. So I said, 'O Messenger of Allah, if one of us did this, we would fear that it would have consequences for him.' The Messenger of Allah ﷺ said, 'Verily, a believer is tried and indeed, no affliction or illness befalls him except that Allah expiates his sins and raises him in rank.'"
الحاكم ١٢٧٨:
عن ابو بكر بن اسحاق الفقيه و علي بن حمسهاذ العدل —
«طَرَقَ رَسُولَ اللَّهِ ﷺ وَجَعٌ فَجَعَلَ يَتَقَلَّبُ عَلَى فِرَاشِهِ» فَقُلْتُ يَا رَسُولَ اللَّهِ لَوْ صَنَعَ هَذَا بَعْضُنَا لَخُشِيَ أَنْ تَجِدَ عَلَيْهِ فَقَالَ رَسُولُ اللَّهِ ﷺ «إِنَّ الْمُؤْمِنَ لَيُشَدَّدُ عَلَيْهِ وَلَيْسَ مِنْ مُؤْمِنٍ يُصِيبُهُ نَكْبَةٌ أَوْ وَجَعٌ إِلَّا حَطَّ اللَّهُ عَنْهُ خَطِيئَةً وَرَفَعَ لَهُ دَرَجَةً»
hadithunlocked.com