Psalms 107 17
They were stupid because they rebelled; they suffered for their sins.
Compare with other 3 random translations
AMP Psalms 107:17Some are fools [made ill] because of the way of their transgressions and are afflicted because of their iniquities.
CSB Psalms 107:17Fools suffered affliction because of their rebellious ways and their iniquities.
KJV Psalms 107:17Fools because of their transgression, and because of their iniquities, are afflicted.