Here's the answer:
“erst die Arbeit, dann das Vergnügen”
Watch a real native speaker say it:
Here's how it sounds in a textbook:
Fun fact: the hundreds of thousands of people learning German with Memrise get this phrase correct 94.93% of the time!