David
Psalm 107:13ESV·traditional attribution

Then they cried to the LORD in their trouble, and he delivered them from their distress.

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

Then they cried unto the Lord in their trouble. Not a prayer till then. While there was any to help below they would not look above. No cries till their hearts were brought down and their hopes were all dead— then they cried, but not before.

Matthew Henry Presbyterian @wholebiblehenry

We are to take notice of the goodness of God towards prisoners and captives. Observe, 1. A description of this affliction. Prisoners are said to sit in darkness (Psa 107:10), in dark dungeons, close prisons, which intimates that they are desolate and disconsolate; they sit in the shadow of death, which intimates not only great distress and trouble, but great danger.

Commenting on Psalm 107:10-16