Here's the answer:
“dormimos en el tren porque no teníamos dinero para un hotel”
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 94.5% of the time!