Things ’twas hard to bear ’tis pleasant to recall.
quae fuit durum pati, meminisse dulce est.
Original text (Latin)
Notes from Wikiquote
lines 656-657; (Amphitryon)
Variants
Things that were hard to bear are sweet to remember. (translator unknown).