Sirach 22:13

13 Talk not much with a fool, and go not to him that hath no understanding: beware of him, lest thou have trouble, and thou shalt never be defiled with his fooleries: depart from him, and thou shalt find rest, and never be disquieted with madness.

Sirach 22:13 In-Context

11 Weep for the dead, for he hath lost the light: and weep for the fool, for he wanteth understanding: make little weeping for the dead, for he is at rest: but the life of the fool is worse than death.
12 Seven days do men mourn for him that is dead; but for a fool and an ungodly man all the days of his life.
13 Talk not much with a fool, and go not to him that hath no understanding: beware of him, lest thou have trouble, and thou shalt never be defiled with his fooleries: depart from him, and thou shalt find rest, and never be disquieted with madness.
14 What is heavier than lead? and what is the name thereof, but a fool?
15 Sand, and salt, and a mass of iron, is easier to bear, than a man without understanding.

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