“He who giveth away wisdom robbeth himself. He is as one who giveth his treasure to a robber.”
Oscar Wilde wrote this in Poetry.
Where it appears
And he bowed his head on his hands and wept, and said to his Soul, “Why is it that I am full of sorrow and fear, and that each of my disciples is an enemy that walks in the noonday?” And his Soul answered him and said, “God filled thee with the perfect knowledge of Himself, and thou hast given this knowledge away to others. The pearl of great price thou hast divided, and the vesture without seam thou hast parted asunder. He who giveth away wisdom robbeth himself. He is as one who giveth his treasure to a robber. Is not God wiser than thou art? Who art thou to give away the secret that God hath told thee? I was rich once, and thou hast made me poor. Once I saw God, and now thou hast hidden Him from me.”
From the public-domain edition, read it free.