17 After the death of Jehoiada, the officials of Judah came and paid homage to the king, and he listened to them. 18 They abandoned the temple of the Lord, the God of their ancestors, and worshiped Asherah poles and idols. Because of their guilt, God's anger came on Judah and Jerusalem. 19 Although the Lord sent prophets to the people to bring them back to him, and though they testified against them, they would not listen. 20 Then the Spirit of God came on Zechariah son of Jehoiada the priest. He stood before the people and said, "This is what God says: 'Why do you disobey the Lord's commands? You will not prosper. Because you have forsaken the Lord, he has forsaken you.' " 21 But they plotted against him, and by order of the king they stoned him to death in the courtyard of the Lord's temple. 22 King Joash did not remember the kindness Zechariah's father Jehoiada had shown him but killed his son, who said as he lay dying, "May the Lord see this and call you to account."

Matthew Henry's Commentary on 2 Chronicles 24:17-22

Commentary on 2 Chronicles 24:15-27

(Read 2 Chronicles 24:15-27)

See what a great judgment on any prince or people, the death of godly, zealous, useful men is. See how necessary it is that we act in religion from inward principle. Then the loss of a parent, a minister, or a friend, will not be losing our religion. Often both princes and inferior people have been flattered to their ruin. True grace alone will enable a man to bring forth fruit unto the end. Zechariah, the son of Jehoiada, being filled with the Spirit of prophecy, stood up, and told the people of their sin. This is the work of ministers, by the word of God, as a lamp and a light, to discover the sin of men, and expound the providences of God. They stoned Zechariah to death in the court of the house of the Lord. Observe the dying martyr's words: The Lord look upon it, and require it! This came not from a spirit of revenge, but a spirit of prophecy. God smote Joash with great diseases, of body, or mind, or both, before the Syrians departed from him. If vengeance pursue men, the end of one trouble will be but the beginning of another. His own servants slew him. These judgments are called the burdens laid upon him, for the wrath of God is a heavy burden, too heavy for any man to bear. May God help us to take warning, to be upright in heart, and to persevere in his ways to the end.