Dhammapada verses 78 and 79

78. Do not associate with evil companions; do not seek the fellowship of the vile. Associate with the good friends; seek the fellowship of noble men.

79. He who drinks deep the Dhamma lives happily with a tranquil mind. The wise man ever delights in the Dhamma made known by the Noble One (the Buddha).

– Dhammapada VI – Panditavagga: The Wise 78 and 79