Ben Sira 49:4

4 All, except David and Ezekias and Josias, were defective: for they forsook the law of the most High, even the kings of Juda failed.

Ben Sira 49:4 In-Context

2 He behaved himself uprightly in the conversion of the people, and took away the abominations of iniquity.
3 He directed his heart unto the Lord, and in the time of the ungodly he established the worship of God.
4 All, except David and Ezekias and Josias, were defective: for they forsook the law of the most High, even the kings of Juda failed.
5 Therefore he gave their power unto others, and their glory to a strange nation.
6 They burnt the chosen city of the sanctuary, and made the streets desolate, according to the prophecy of Jeremias.
The King James Version is in the public domain.