Surah Ash-Shura

42:34

أَوْ يُوبِقْهُنَّ بِمَا كَسَبُوا۟ وَيَعْفُ عَن كَثِيرٍۢ

Or He could destroy them for what they earned; but He pardons much.

Tafsir 42:34

Or if Allah, (may He be glorified), willed to destroy those ships by sending gale-force winds, He would have done so on account of the sins that people earn. He overlooks many of the sins of His servants and does not punish them for those.