Those who worry and argue that their good works, contributions, offerings, gifts, and service are not recognized and rewarded make it clear that they were working for their ego, recognition, and vanity, for their self-interest.
A good deed offered for self-interest brings good results to those to whom it is offered but bad luck to the one who offered it.
In such a case the good work was paid to the person as a past debt for which the debtor has no right to expect reward.
Because his good deed was contaminated by self-interest, the contamination came back to him and caused various troubles in his nature. And he innocently thinks, "I have done so much good, but I face misfortune and no one gives me any recognition."
Good thoughts, good actions, good words, and good service can bring reward only when behind them exist selflessness, detachment, compassion, and self-sacrifice. Otherwise the scales of karma measure them as dangerous efforts to hurt the victims of ego, vanity, and self-interest.
Esoteric Science of Healing