Yet let us never think that simply doing good somehow makes us good, or gains us any favor in the sight of GOD. Aside from the fact that He, whether we acknowledge it or not, is the one responsible for us doing those things, Heaven decides whether something is good or bad differently than we do. It is not the act alone that determines what manner of work it is, but the motive. Not the what, but the why. That is part of the reason why Jesus denounced the Pharisees. Much of what they did, if not all, was done to be seen of men, not to glorify GOD. Their worth of their deeds was measured by their motives.
When one considers this, it is not hard to understand why Isaiah said, "But we are all as an unclean [thing,] and all our righteousnesses [are] as filthy rags;" (Isaiah 64:6). We find ourselves saying it too.
To stay focused on that one thought is enough to make anyone want to give up. The good news is, there's hope. While it is true that most often our "good" works are really corrupt, GOD knows we cannot change that ourselves, and longs to help us. Here is a wonderful thought from the book Steps to Christ, by Ellen White:
"What you need to understand is the true force of the will. This is the governing power in the nature of man, the power of decision, or of choice. Everything depends on the right action of the will. The power of choice God has given to men; it is theirs to exercise. You cannot change your heart, you cannot of yourself give to God its affections; but you can choose to serve Him. You can give Him your will; He will then work in you to will and to do according to His good pleasure. Thus your whole nature will be brought under the control of the Spirit of Christ; your affections will be centered upon Him, your thoughts will be in harmony with Him." ~SC, pg. 47If we confess our wrong motives, that our springs of action are impure, and ask GOD for help, He will forgive and change us. We are to go by faith on this matter, as with everything else, so if you do not feel that your motive is right, don't lose faith; keep asking for purer motives, certain GOD has heard you, and in the meantime do what's right anyway. It won't hurt anything; but refusing to most certainly will.
Blessings,
Jean