It might be helpful to reframe what made you proud. Like you said, putting in the effort up front means you expect to do well. But you should be proud of your preparation which enabled you to be successful.
It’s easy to fixate on the end goal (eg doing well on a test) and ignore all the little steps that got you there (going to class, doing your homework, studying).
Gotta be “wokin the wok”