Sayyidah Aisha Siddiqa (may Allah be pleased with her) narrates: I heard the Prophet Muhammad (peace and blessings be upon him) say: "Whenever a Muslim is pricked by a thorn or suffers anything greater than that (any kind of pain), Allah the Exalted raises his rank because of it and forgives his sins because of it."
Hadith Referenceصحیح ابن حبان / كتاب الجنائز وما يتعلق بها مقدما أو مؤخرا / 2906
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «الروض» (819): م.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناد صحيح على شرط الشيخين