Jeremiah 20:2

20:2 When he heard Jeremiah’s prophecy, he had the prophet flogged. Then he put him in the stocks which were at the Upper Gate of Benjamin in the Lord’s temple.

Jeremiah 37:15

37:15 The officials were very angry at Jeremiah. They had him flogged and put in prison in the house of Jonathan, the royal secretary, which they had converted into a place for confining prisoners.