The officials of King Jehoiakim alerted Baruch in Jeremiah 36:
From the horizontal point of view, they hid themselves. From the vertical point of view, the LORD did. Both are true.
Some time later (Jer 37), Zedekiah was king. Irijah, the captain of the guard, accused Jeremiah of being a deserter and imprisoned him.
Later:19b “Go and hide, you and Jeremiah, and let no one know where you are.”
Who hid Jeremiah and Baruch?26 The king commanded Jerahmeel the king’s son and Seraiah the son of Azriel and Shelemiah the son of Abdeel to seize Baruch the secretary and Jeremiah the prophet, but the LORD hid them.
From the horizontal point of view, they hid themselves. From the vertical point of view, the LORD did. Both are true.
Some time later (Jer 37), Zedekiah was king. Irijah, the captain of the guard, accused Jeremiah of being a deserter and imprisoned him.