に起こった

happened

→ に
phrase Common #7,319
happened に can mark when something happened or who it happened to.
JA: 事故は昨日の夜に起こった。
EN: The accident happened last night.

ジョンに起こった出来事について聞きましたか。

Did you hear about what happened to John?

神が行ったことだって僕だけに起こったこと だと思う

I think even what God did was something that happened only to me.

— ザ・マン・フロム・アース (2007)

何がトムに起こったのか私にはわかりません。

I don't know what happened to Tom.

それはまったく偶然に起こった。

It happened completely by chance.

メアリーに起こったこと、トムは実際どれくらい知ってるの?

How much does Tom actually know about what happened to Mary?

その事故はある雨の日に起こった。

The accident happened on a rainy day.

事故は突然に起こった。

The accident happened suddenly.

トムは何かがメアリーに起こったかもしれないと心配している。

Tom is worried that something may have happened to Mary.

その爆発は偶然に起こった。

The explosion happened by accident.

その事故は明け方に起こった。

The accident happened at dawn.

その事故は昨日の朝に起こった。

The accident happened yesterday morning.

それは偶然に起こった。

It happened by chance.