to come to one's senses
to start thinking clearly or rationally · to become reasonable
What's the situation?
Imagine your friend is super upset about a small argument and threatening to quit their job over it. You'd tell them to 'come to their senses'!