Summary: Discusses the benefits of making a covenant with our eyes, which is key to avoiding sin.
Job a man of wisdom made a covenant with his eyes not to look lustfully upon a woman. God appeared to be impressed with Job's actions and bragged about him to Satan, saying "Have you considered my servant Job? There is no one on earth like him; he is blameless and upright, a man who fears God and shuns evil."
If it looked like sin Job avoided it. He knew the will of the God he served. He knew the fate of the wicked/disobedient and decided to obey God and shun sin. This wisdom and desire to obey God worked quite well for him because scripture says he was the richest/greatest man in the east. He was a man of means and knew if he wanted God to bless him and all he put his hand to, he would have to be holy as God is holy (Leviticus 11:45, 1 Peter 1:16).
He said, if he sinned by trying to seduce his neighbor's wife, God would destroy his increase ( Job 31:9-11). This statement points us to Deuteronomy 28 :15-68, verse 15 says " But it shall come to pass, if you do not obey the voice of the Lord your God, to observe carefully all His commandments and His statutes which I command you today, that all these curses will come upon you and overtake you."
Matthew Henry’s Commentary on Deuteronomy states the following regarding our passage: "None fall under his curse but those that rebel against his command. Whatever he does is under a curse too. It is a curse in all that he sets his hand to (Deuteronomy 28:20), a constant disappointment, which those are subject to that set their hearts upon the world, and expect their happiness in it, and which cannot but be a constant vexation. Wherever the sinner goes, the curse of God follows him; wherever he is, it rests upon him. He is cursed in the city and in the field, (Deuteronomy 28:16.) The strength of the city cannot shelter him from it, the pleasant air of the country is no fence against these pestilential steams. He is cursed (Deuteronomy 28:19) when he comes in, for the curse is upon the house of the wicked (Proverbs 3:33), and he is cursed when he goes out, for he cannot leave that curse behind him, nor get rid of it, which has entered into his bowels like water and like oil into his bones. (2.) Whatever he has is under a curse: Cursed is the ground for his sake, and all that is on it, or comes out of it, and so he is cursed from the ground, as Cain, Genesis 4:11."
God blesses Obedience
So, it looks like shunning evil has its' perks! Not that we obey God to receive goodies, but we can't ignore the fact that God himself said you do this and I'll do this. You obey me and I'll bless you. He instituted this plan/covenant that is still valid today. Jesus said, it's the father's good pleasure to give you the kingdom (Luke 12:32). We are citizens and members of the household of God (Ephesians 3:19). If you are member of the house, you have access to what's in the house. Imagine what's in God's house! If you forsake/shun sin you will reap a reward in this life and the next ( Mark 10:30, Romans 8:32).
Let' review more explanation from Matthew Henry regarding the benefits of obedience as related to Deuteronomy chapter 28.