Niccolò Machiavelli said this quote

It is of the greatest important in this world that a man should know himself, and the measure of his own strength and means; and he who knows that he has not a genius for fighting must learn how to govern by the arts of peace.