Sura Al-A'raaf

7:165

فَلَمَّا نَسُوا۟ مَا ذُكِّرُوا۟ بِهِۦٓ أَنجَيْنَا ٱلَّذِينَ يَنْهَوْنَ عَنِ ٱلسُّوٓءِ وَأَخَذْنَا ٱلَّذِينَ ظَلَمُوا۟ بِعَذَابٍۭ بَـِٔيسٍۭ بِمَا كَانُوا۟ يَفْسُقُونَ

Och när [sabbatsbrytarna] hade glömt alla påminnelser de fått, räddade Vi dem som ville hejda överträdelserna och straffade syndarna för deras olydnad.

Tafsir 7:165

When the wrongdoers turned away from what those who advised them had reminded them of, and they would not give up their disobedience, Allah saved the group which had forbidden disobedience from the punishment, and afflicted those who transgressed the limits by fishing on the Saturday with a firm punishment, because they were not obedient to Allah and persisted in their rebellion.