Walter Scott said this quote

Look back, and smile on perils past!