Benjamin Franklin said this quote

At twenty years of age the will reigns; at thirty, the wit; and at forty, the judgment.