Viagra (originally called Sildenafil) was discovered accidentally.
"It was initially studied for use in hypertension (high blood pressure) and angina pectoris (a symptom of ischaemic heart disease"
I got it confused with Rogaine, the hair-loss treatment, which was also discovered accidentally, whilst researching what was originally intended to be an anti-hypertension medication called Minoxidil.
And don’t forget Silly Putty.
Just saw this:
Viagra (originally called Micoxafloppin)