The first principle in personal finance is to spend less than you earn.
Ideally a lot less than you earn.
Once you have savings, you can then decide what you do with them. Ideally, you have some money stashed as an emergency fund should you need more cash. Then you begin investing the rest with the goal of long-term growth. And so on and so forth.
But it begins with spending less than you earn.
That comes from being conscious about your expenses, living simply, and upgrading your lifestyle at a rate much slower than your earnings.
When in doubt, that’s the place to start.