The Wisdom of Jesus the Son of Sirach, or Ecclesiasticus

Chapter 22
1He who teaches a fool is as one who teaches a man who slumbers. In the end he will say, “What is it?”