Jeremiah 19:14

19:14 Then Jeremiah left Topheth where the Lord had sent him to give that prophecy. He went to the Lord’s temple and stood in its courtyard and called out to all the people.

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.