Here's the answer:
“跑的了和尚跑不了庙”
(pǎo-de-liǎo hé-shang pǎo-bù-liǎo miào)
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 87.92% of the time!