Therefore the princes were angry with Jeremiah, and struck him, and put him in prison in the house of Jonathan the scribe: for they had made that the prison.
Read Chapter 37
Ambrose of Milan
AD 397
One could judge that merit and virtue could be evident even in captivity. For Jeremiah was not less happy in captivity, nor was Daniel or Esdras, nor were Anania and Azaria and Misael less happy than if they had not fallen into captivity. They entered into captivity in such a way that they brought to their people both present consolations in captivity and the hope of escaping from it. - "Jacob and the Happy Life 8.36"
Thus there is the expression in Exodus: “From the firstborn of Pharaoh to the firstborn of the captive woman who was in the pit.” But they even threw Jeremiah also into a pit. His brothers through jealousy confined Joseph in a pit without water. Each act, therefore, either draws us downward by oppressing us with sin or lifts us upward by raising us on wings toward God. Therefore, you have saved me, I who formerly lived a wicked life, and have separated me from those who go down to the dark and frigid region. The meaning of the words “you have upheld me” is to say, “you have led me back from my downward course, so as not to give my enemies an occasion to rejoice over me.” - "Homilies on the Psalms 14.3 (Ps 29)"