わりよければすべてよし
owariyokereba subete yoshi

Expression

1. all's well that ends well; it will all come good in the end

Proverb
Other forms: