It's likely that this sentiment has been expressed in various forms throughout history. You might find similar ideas expressed in the writings of philosophers, poets, or religious figures.
While we can't attribute it to a specific author, it's a powerful statement that resonates with many people.