In Part II, Chapter 34 of Anna Karenina, Prince Aleksandr Shcherbatsky gives his daughter, Kitty, the following advice:
. . it's better when one does good in such a manner that no one knows of it.
This comes from Matthew, chapter 6, which is part of the Sermon on the Mount.
King James Version
6 Take heed that ye do not your alms before men, to be seen of them: otherwise ye have no reward of your Father which is in heaven.
2 Therefore when thou doest thine alms, do not sound a trumpet before thee, as the hypocrites do in the synagogues and in the streets, that they may have glory of men. Verily I say unto you, They have their reward.
3 But when thou doest alms, let not thy left hand know what thy right hand doeth:
4 That thine alms may be in secret: and thy Father which seeth in secret himself shall reward thee openly.
Have a peaceful Sunday everyone!