proverb

All is well that ends well.

good

is said for

Someone who had a problem or a situation that ended in a good way, so now he can forget how unpleasant or difficult time had before.