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