“Incidentally” in Chinese is 偶然 (ǒurán).
我偶然找到了它。
I found it by chance.
Example sentence from Tatoeba (CC BY 2.0).