2 Chronicles 24:21-25

ISV(i) 21 But the people conspired against him, and at the direct orders of the king they stoned him to death in the courtyard of the LORD’s Temple. 22 This is how King Joash failed to remember the kindness that Zechariah’s father Jehoiada had shown him: he killed his son. As he lay dying, Zechariah cried out, “May the LORD watch this and avenge.”
23 The Death of Joash
At the end of that year, the Aramean army attacked Joash. They invaded Judah and Jerusalem, destroyed every senior official among the people, and sent all of their possessions to the king of Damascus. 24 The Aramean army attacked with only a small force, but the LORD delivered a much larger army into their control because Judah had abandoned the LORD God of their ancestors. And so the Aramean army carried out God’s judgment on Joash. 25 After the Arameans left him very sick, Joash’s own servants conspired against him because Joash had murdered Jehoiada the priest’s son, and they killed him on his sick bed.