Here's the answer:
“车到山前必有路”
(chē dào shān qián bì yǒu lù)
Watch a real native speaker say it:
Here's how it sounds in a textbook:
Fun fact: the hundreds of thousands of people learning Chinese with Memrise get this phrase correct 88.63% of the time!