Voice of reason

Meaning: Someone who gives sensible and reasonable advice, especially during an argument or difficult situation.
Example: When everyone started panicking, Mary was the voice of reason.