I always thought this was by Victor Hugo , I read the poem at my aunt's funeral . Researching this is what I found
This poem, and slight variataions, have been attributed to: Victor Hugo, Col. David Marcus, Margaret M. Stevens, Dr. Harold Blake Walker, Henry Van Dyke, and Bishop Charles Henry Brent. Due to the alleged attribution to Victor Hugo, and my obsession with the French author, I have been researching the origin of the quote for about ten years. In March of 2012 Google Books finally digitized a book from the early 1900s that gives credit where credit is due.
(Over the years I have conducted some limited research in libraries at a nearby university and a nearby seminary browsing works of Herny Van Dyke and Bishop Brent searching for the poem. However, my research has mostly been restricted to online sources.)
Result is
The Northwestern Christian Advocate, July 13, 1904, credits the poem to a Luther F. Beecher.