Behaving morally because of a hope of reward or a fear of punishment is not morality.
If you are doing something for reward or punishment, you do not have morality.