Abu Hurairah reported,

When the verse "Whoever does evil will be recompensed for it" [Nisa 4:123] was revealed, it weighed heavily upon the Muslims and affected them deeply, as much as Allah willed. They complained about this to the Messenger of Allah ﷺ, and the Messenger of Allah ﷺ said to them, "Strive for moderation and aim for what is right. Every misfortune that befalls a Muslim is an expiation, even a stumble that he suffers."

Ahmad 7386

Sahih

حدثنا سفيان حدثني ابن محيصن شيخ من قريش سهمي سمعه من محمد بن قيس بن مخرمة

عن أبي هريرة قال

لما نزلت {من يعمل سوءا يجز به} شقت على المسلمين وبلغت منهم ما شاء الله أن تبلغ فشكوا ذلك إلى رسول الله ﷺ فقال لهم رسول الله ﷺ قاربوا وسددوا فكل ما يصاب به المسلم كفارة حتى النكبة ينكبها

أحمد 7386صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Hurairah
Numbering
Darussalam 7386
Ahmad 7386