Sirach 19:24

24 He that hath small understanding, and feareth God, is better than one that hath much wisdom, and transgresseth the law of the most High.

Sirach 19:24 In-Context

22 The knowledge of wickedness is not wisdom, neither at any time the counsel of sinners prudence.
23 There is a wickedness, and the same an abomination; and there is a fool wanting in wisdom.
24 He that hath small understanding, and feareth God, is better than one that hath much wisdom, and transgresseth the law of the most High.
25 There is an exquisite subtilty, and the same is unjust; and there is one that turneth aside to make judgment appear; and there is a wise man that justifieth in judgment.
26 There is a wicked man that hangeth down his head sadly; but inwardly he is full of deceit,

The Brenton translation of the Septuagint is in the public domain.