Problems that occur along the way do not matter as long as the outcome is happy.
Note: This proverb was used as a title for one of William Shakespeare's comedies.
all's well that ends well
Everything has turned out satisfactorily, even though the outcome has been uncertain. For example, His lawyer persuaded Jack to plead guilty, but the court merely put him on probationall's well that ends well. This proverb, dating from about 1250, gained even more currency as the title of a Shakespeare comedy.