Sayyidah Aishah Siddiqah (may Allah be pleased with her) narrates: The Prophet (peace and blessings be upon him) was struck by pain, and in that pain he kept complaining and turning over on his bed. Sayyidah Aishah (may Allah be pleased with her) said: "If one of us had done this, you would have been displeased with him." The Prophet (peace and blessings be upon him) said: "Hardship is made severe upon the righteous. And no affliction befalls a believer, whether it is the prick of a thorn or even less than that, except that because of it his sins are removed and because of it his rank is raised."
Ahmad recorded it, and its narrators are thiqat (trustworthy).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الجنائز / 3739