(proverb) don’t get upset about small things that have no importance
A: I missed my bus! I’m so angry!
B: Hey, don’t cry over spilled milk. Another bus will come along soon.
I know you feel bad about failing that test, but you really shouldn’t cry over spilled milk. I’m sure you’ll do better on the next one.