stumble onto (something)
To discover something casually, accidentally, or by chance. While researching ways of boosting the immune system, the team ended up stumbling onto a remarkable new method of treating cancer. The accountant stumbled onto a huge conspiracy involving politicians from around the world.