Here's the answer:
“ich war vor drei Jahren in Frankreich”
Watch a real native speaker say it:
Here's how it sounds in a textbook:
You could also say:
- in Frankreich war ich vor drei Jahren
- vor drei Jahren war ich in Frankreich
Fun fact: the hundreds of thousands of people learning German with Memrise get this phrase correct 96.82% of the time!