This phrase means 'You will not be successful in life if you don't work hard.'
The phrase 'tener éxito' can be confusing, because 'éxito' in Spanish means 'success' as opposed to 'exit'. 'Tener éxito' means 'To be successful' or 'To have success'. Similar red herrings in Spanish are the words 'sensible' and 'sencillo'. 'Sensible' does not mean 'sensible', it instead means 'sensitive' and 'sencillo' means 'sensible'.