come upon

中高级 (B2) formal

To discover or find something when you weren't looking for it.

"While clearing out the attic, she came upon a box of her grandmother's old letters."