Here's the answer:
“wenn du dich anstrengst, wird alles gut”
Watch a real native speaker say it:
Here's how it sounds in a textbook:
You could also say:
- alles wird gut, wenn du dich anstrengst
Fun fact: the hundreds of thousands of people learning German with Memrise get this phrase correct 95.45% of the time!