Contrary to (someone or something)

In spite of something.

Contrary to what everybody thought, my friend had already quit his job.