Here's the answer:
“la vi ayer en la biblioteca”
Watch a real native speaker say it:
Here's how it sounds in a textbook:
You could also say:
- la vi en la biblioteca ayer
- ayer la vi en la biblioteca
Fun fact: the hundreds of thousands of people learning Spanish with Memrise get this phrase correct 97.39% of the time!