Here's the answer:
“el juez sentenció al ladrón a cinco años de cárcel”
Watch a real native speaker say it:
Here's how it sounds in a textbook:
Fun fact: the hundreds of thousands of people learning Spanish with Memrise get this phrase correct 91.83% of the time!