TO worship God even for the sake of salvation or any other reward is equally degenerate. Love knows no reward. Give your love unto to God, but do not ask anything in return even from Him through pray.
If goodness has causes, it is not goodness; if it has effects, a reward, it is not goodness either. So goodness is outside the chain of cause and effect.