Not every "good" deed is actually good, but only that good deed which is done for the sake of God. The externals of a particular action are not its essence; God alone sees a person's heart. We need to humble ourselves, realizing that every good deed is mixed with some passion.
St. Nikon of Optina