Serendipity is the effect by which one accidentally discovers something fortunate, especially while looking for something else entirely.