Translated Labs

You said:

This happening happened to happen just before that happening which happened to happen immediately after this happening yeah.

into Japanese

この出来事は偶然起こった直前に起こったことが起こる直前に起こったのです。

Back into English

This happened just before what happened just before a chance occurred.