Surah Ash-Shuraa 42:30
وَمَآ أَصَـٰبَكُم مِّن مُّصِيبَةٍ فَبِمَا كَسَبَتْ أَيْدِيكُمْ وَيَعْفُوا۟ عَن كَثِيرٍ
And whatever strikes you of disaster - it is for what your hands have earned; but He pardons much.
Translation: Saheeh International
Tafsir
And whatever affliction whatever misfortune or hardship may befall you — this is an address to the believers — is on account of what your own hands have earned that is to say for the sins that you have committed — the use of ‘hands’ to express this is because most actions are effected by them. …
Excerpt from Tafsir al-Jalalayn, commentary on 42:30, via Quran.com. The reader has the full commentary and 9 more tafsirs.