The King James Version Bible

Sirach 16:23

23 He that wanteth understanding will think upon vain things: and a foolish man erring imagineth follies.