To be master of one's self

to have entire self-control; not to be governed by passion.

See also: Master