Oscar Wilde said this quote

A man who is master of himself can end a sorrow as easily as he can invent a pleasure.