As an example, under the Mosaic Law, the Israelites experienced severe consequences when they veered from their worship of Jehovah.
وَيَسْعَى رُؤُوسُ ٱلْعَائِلَاتِ بِشَكْلٍ خَاصٍّ إِلَى ٱلْعَمَلِ بِكَدٍّ لِيُعِيلُوا عَائِلَاتِهِمْ .‏