Moses
Psalm 107:17ESV·traditional attribution

Some were fools through their sinful ways, and because of their iniquities suffered affliction;

John Calvin Reformed @genevareformer

PSALM 107 The Psalmist teaches us, in the first place, that human affairs are not regulated by the fickle and uncertain wheel of fortune, but that we must observe the judgments of God in the different vicissitudes which occur in the world, and which men imagine happen by chance.

Commenting on Psalm 107:1-43

C.H. Spurgeon Reformed Baptist @princeofpreachers

Fools because of their transgression, and because of their iniquities, are afflicted. Many sicknesses are the direct result of foolish acts. Thoughtless and lustful men by drunkenness, gluttony, and the indulgence of their passions fill their bodies with diseases of the worst kind.

Matthew Henry Presbyterian @wholebiblehenry

Bodily sickness is another of the calamities of this life which gives us an opportunity of experiencing the goodness of God in recovering us, and of that the psalmist speaks in these verses, where we may observe, I. That we, by our sins, bring sickness upon ourselves and then it is our duty to pray, Psa 107:17-19. 1.

Commenting on Psalm 107:17-22