Any idioms that describe actions now that will benefit yourself in the future?

In regards to the concept of caring about your future self, a simple example being not staying up late drinking so in the morning you don't/your future self doesn't feel awful for work. Is there some phrase that handily captures or illustrates this? Especially if its something that somehow emphasizes the building of the habit and return over time (the more you don't stay up late, the more consistent/reliable for work you are).

The closest I could think of was someone I once heard using "cast your bread upon the waters" and describing how the waves bring it back. Presumably you could consistently cast bread and so receive consistent bread returns at opportune moments but who wants soggy bread (or maybe I don't appreciate this phrase well enough).

To be clear I'm not thinking in terms of literal investment, or at least basic savings/interest idioms don't seem to suit. "A penny saved is a penny earned" for example doesn't quite seem to fit, but if there's something relatively broad that's similar I'm open to it.

This is also not a one time thing like What is it called when you do something once and benefit from it for a long time or forever


Solution 1:

Here is something that seems to fit (also mentioned by @Jalene in comments) -

Reap what you sow

If someone reaps what they sow, they suffer or benefit as a result of their own actions. Note: To reap a crop such as corn means to cut and gather it. "Parents who neglect their children will reap what they sow." "It seems to me that if we neglect these people in our society, we should expect to reap what we sow." Note: People sometimes use the more formal expressions "as you sow, so shall you reap" or "as we sow, so shall we reap". "Our future lies in our own hands. Let us ensure that it is ethical and spiritual, for without doubt as we sow so shall we reap!" Note: This is based on a quotation from the Bible: `Whatsoever a man soweth, that shall he also reap.' (Galatians 6:7)

(The Free Dictionary)

Solution 2:

A common metaphor would be to say that you are eating your vegetables -- doing something that is not what you prefer in the moment because it will have a good effect in the future.