Atomic Habits phrases this more or less as telling yourself e.g. "you are a runner" and then every time you could work out is an opportunity to prove it to yourself.
This trick has helped me a lot. I think to myself "I'm the type of person that . . . " And it helps overcome the mental anguish of should I or shouldn't I. "I'm the type of person that works out everyday," and the decision has already been made.