With accent marks:
Всё хорошо́, что хорошо́ конча́ется.
All is well that ends well.
The proverb comes from the a play by William Shakespeare with the same name.
With these words, we summarize some dangerous events or troubles that we managed to overcome without much loss.
Other Russian proverbs
Patience and labor will grind everything.
Start taking care of the dress while it's new, and of your honor while you are young.
Who is talking about what, and a lousy one about the bath.
Not everything that glitters is gold.
Do not look at a given horse's teeth.
Live for a century, learn for a century, but die being a fool anyway.
Hurry to much and you will make people laugh.
Silent means consent.