Samuel Butler said this quote

It is better to have loved and lost than never to have lost at all.