Proverbs 9:6Forsake the foolish, and live; and go in the way of understanding.
Proverbs 13:20He that walketh with wise men shall be wise: but a companion of fools shall be destroyed.
Proverbs 19:27Cease, my son, to hear the instruction that causeth to err from the words of knowledge.
1 Corinthians 5:11But now I have written unto you not to keep company, if any man that is called a brother be a fornicator, or covetous, or an idolater, or a railer, or a drunkard, or an extortioner; with such an one no not to eat.
Ephesians 5:11And have no fellowship with the unfruitful works of darkness, but rather reprove them.