The Wisdom of Jesus the Son of Sirach, or Ecclesiasticus

Chapter 37
1But rather be continually with a godly man, whom you know to be a keeper of the commandments, who in his soul is as your own soul, and who will grieve with you, if you fail.