par accident
It looks like he found it by accident to me.
On dirait qu’il l’a trouvé par hasard, à mon avis.
J’ai trouvé la bonne réponse par hasard.
This didn't happen by accident.
Ce n’est pas arrivé par hasard.
You really shot that officer by accident?
Vous avez vraiment tiré sur cet officier par accident ?
— Assassination (2015)
I just happened to meet him by accident.
Je l'ai rencontré par hasard.
I found the secret compartment quite by accident.
J'ai découvert le compartiment secret tout à fait par hasard.
The explosion came about by accident.
L’explosion s’est produite par accident.
I was explaining things when the gun went off by accident!
J'étais en train d'expliquer les choses quand l'arme a fait feu par accident !
— Andhadhun (2018)