20 If his back did not give me a blessing, and the wool of my sheep did not make him warm; 21 If my hand had been lifted up against him who had done no wrong, when I saw that I was supported by the judges; 22 May my arm be pulled from my body, and be broken from its base. 23 For the fear of God kept me back, and because of his power I might not do such things.

24 If I made gold my hope, or if I ever said to the best gold, I have put my faith in you; 25 If I was glad because my wealth was great, and because my hand had got together a great store; 26 If, when I saw the sun shining, and the moon moving on its bright way, 27 A secret feeling of worship came into my heart, and my hand gave kisses from my mouth; 28 That would have been another sin to be rewarded with punishment by the judges; for I would have been false to God on high.

Matthew Henry's Commentary on Job 31:20-28

Commentary on Job 31:16-23

(Read Job 31:16-23)

Job's conscience gave testimony concerning his just and charitable behaviour toward the poor. He is most large upon this head, because in this matter he was particularly accused. He was tender of all, and hurtful to none. Notice the principles by which Job was restrained from being uncharitable and unmerciful. He stood in awe of the Lord, as certainly against him, if he should wrong the poor. Regard to worldly interests may restrain a man from actual crimes; but the grace of God alone can make him hate, dread, and shun sinful thoughts and desires.

Commentary on Job 31:24-32

(Read Job 31:24-32)

Job protests, 1. That he never set his heart upon the wealth of this world. How few prosperous professors can appeal to the Lord, that they have not rejoiced because their gains were great! Through the determination to be rich, numbers ruin their souls, or pierce themselves with many sorrows. 2. He never was guilty of idolatry. The source of idolatry is in the heart, and it corrupts men, and provokes God to send judgments upon a nation. 3. He neither desired nor delighted in the hurt of the worst enemy he had. If others bear malice to us, that will not justify us in bearing malice to them. 4. He had never been unkind to strangers. Hospitality is a Christian duty, 1 Peter 4:9.