There is a huge relationship between ethics and sanctions in the first several chapters of the Proverbs and throughout the entire Bible.
For instance, it is stated in Proverbs 1:16 & 18 that ‘Their feet run to evil and they make haste to shed blood… But they lie in wait for their own blood, they lurk secretly for their own lives’ meaning that those who do evil and go down an evil path will have their evil ways come back right back at them backfiring which leads to a path of self-destruction.
On other the side of things, in Proverbs 3:13 it says that ‘Happy is the man who finds wisdom and gains understanding’ and in Proverbs 2:7-8 it says that God ‘stores up sound wisdom for the upright; He is a shield to those who walk uprightly; He guards the paths of the justice, and preserves the way of His saints’ this means that when you follow the commandments you are following a righteous path, a path that God will lead you on.
Verses with the similar idea of ‘you reap what you sow’ are found many times in the Bible, just like this verse in Proverbs 1:31- ‘They shall eat the fruit of their own way…’ stating that exact thing- you reap what you sow.
If you choose to study the Proverbs more closely- which I highly recommend- I’m sure that you will see the importance of your ethical ways as they play a huge part in your life.