It was possibly both divine intervention and coincidence as coincidence does not mean happenstance. Paraphrasing, coincidence implies that there is cause and effect but the cause and effect are of a metaphysical nature. The common misuse of the word coincidence is a pet peeve of mine but at least it gives me the opportunity to share what I know about the topic with others. Your own mind could have caused this coincidence without any divine intervention. This coincidence seems like a mirror coincidence that also had directional value. If it pleases you to learn more about these phenomena, you may read this essay of mine: https://medium.com/channspirations/mirror-coincidences-41893e2e55ed