The Wisdom of Jesus the Son of Sirach, or Ecclesiasticus

Chapter 49
1Except David, Hezekiah, and Josiah, all were wicked, because they abandoned the law of the Most High. The kings of Judah came to an end.