by mistake
idiomDefinition of by mistake
: because of a mistake : without intending to
I got on the wrong train by mistake.