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

It is better to have loved and lost than never to have loved at all is a very common and well-known phrase which means to say that even if you have lost your love, you should appreciate you had it in the first place. While it is typically used in the literal sense such as losing the one you love, it can also be used figuratively. The point of this idiom is that even if you lose what you love, you should instead be grateful you had it than if you never had it at all.