Set up an automatic monthly transfer into a retirement account or brokerage on payday. Investing the same amount every month removes the temptation to time the market. Start small if you need to, and increase the amount each time you get a raise.
This is general information, not personal financial advice. Consider speaking with a licensed financial adviser about your situation.