Gustave Flaubert said this quote

Success is a consequence and must not be a goal.