Be careful not to practice your righteousness in front of others to be seen by them. If you do, you will have no reward from your father in heaven. So when you give to the needy, do not announce it with trumpets, as the hypocrites do in the Synagogues and on the streets, to be honored by others.
When we practice true Righteousness, it shows us living for the pleasure of God and not for the praise of the people.
Jesus calls us to righteous giving, that we should only be giving to others in order to please God. We are not to seek to please ourselves, and certainly not others. When we only seek the praise of others, our giving becomes fuel for selfishness, and God is not glorified.