Both.
You need hardwork to exploit the luck you get.
You need hardwork to exploit the luck you get.
It seems more likely that someone could succeed by simply being lucky, than if they worked hard and never ran into the "right" person, found themselves at the "right" conference, been born into the "right" family or country or situation, etc...
These opportunities often present themselves when you work hard.