Moses
Psalm 107:10BSB·traditional attribution

Some sat in darkness and in the shadow of death, prisoners in affliction and chains,

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

Such as sit in darkness and in the shadow of death. The cell is dark of itself, and the fear of execution casts a still denser gloom over the prison. Such is the cruelty of man to man that tens of thousands have been made to linger in places only fit to be tombs; unhealthy, suffocating, filthy sepulchres, where they have sickened and died of broken hearts.

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