20 And there was another man who was a prophet of the Lord, Uriah, the son of Shemaiah of Kiriath-jearim; he said against this town and against this land all the words which Jeremiah had said: 21 And when his words came to the ears of Jehoiakim the king and all his men of war and his captains, the king would have put him to death; but Uriah, hearing of it, was full of fear and went in flight into Egypt: 22 And Jehoiakim the king sent Elnathan, the son of Achbor, and certain men with him, into Egypt. 23 And they took Uriah out of Egypt and came back with him to Jehoiakim the king; who put him to death with the sword, and had his dead body put into the resting-place of the bodies of the common people.

Matthew Henry's Commentary on Jeremiah 26:20-23

Commentary on Jeremiah 26:16-24

(Read Jeremiah 26:16-24)

When secure sinners are threatened with taking away the Spirit of God, and the kingdom of God, it is what is warranted from the word of God. Hezekiah who protected Micah, prospered. Did Jehoiakim, who slew Urijah, prosper? The examples of bad men, and the bad consequences of their sins, should deter from what is evil. Urijah was faithful in delivering his message, but faulty in leaving his work. And the Lord was pleased to permit him to lose his life, while Jeremiah was protected in danger. Those are safest who most simply trust in the Lord, whatever their outward circumstances may be; and that He has all men's hearts in his hands, encourages us to trust him in the way of duty. He will honour and recompense those who show kindness to such as are persecuted for his sake.