Sirach 16:23

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