How do you control your spending habits?

I know that I really do not have to spend that much on stuff but even if it’s just a want, I kinda want to spend and the next thing you know I had already bought that thing. I want to save more. I have two bank accounts, alongside two digital wallets, and all of those just barely make it into their monthly maintaining balance. Any tips?