Henri Bergson said this quote

Creation signifies, above all, emotion, and that not in literature or art alone. We all know the concentration and effort implied in scientific discovery. Genius has been defined as an infinite capacity for taking pains.