20 if his body has not blessed me,[1] and if he was not warmed with the fleece of my sheep, 21 if I have raised my hand against the fatherless, because I saw my help in the gate, 22 then let my shoulder blade fall from my shoulder, and let my arm be broken from its socket. 23 For I was in terror of calamity from God, and I could not have faced his majesty.

24 "If I have made gold my trust or called fine gold my confidence, 25 if I have rejoiced because my wealth was abundant or because my hand had found much, 26 if I have looked at the sun[2] when it shone, or the moon moving in splendor, 27 and my heart has been secretly enticed, and my mouth has kissed my hand, 28 this also would be an iniquity to be punished by the judges, for I would have been false to God above.

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.