Serendipity is an unplanned fortunate discovery. The term was coined by Horace Walpole in 1754.
The concept is often associated with scientific and technological breakthroughs, where accidental discoveries led to new insights or inventions. From Wikipedia