Viktor E. Frankl said this quote

Don’t aim at success—the more you aim at it and make it a target, the more you are going to miss it. For success, like happiness, cannot be pursued; it must ensue…as the unintended side-effect of one’s personal dedication to a course greater than oneself.