A 5th century Greek philosopher came up with the same theories Darwin did!

Empedocles was a Greek pre-Socratic philosopher and a citizen of Agrigentum, a Greek city in Sicily. Empedocles' philosophy is best known for being the originator of the cosmogenictheory of the four Classical elements.

He also proposed powers called Love and Strife which would act as forces to bring about the mixture and separation of the elements.

These physical speculations were part of a history of the universe which also dealt with the origin and development of life. He also concluded that matter could neither be created nor destroyed, and developed a theory of evolution concluding that form followed function and that the most fit survived.

Influenced by the Pythagoreans, he supported the doctrine of reincarnation. Empedocles is generally considered the last Greek philosopher to record his ideas in verse.

Some of his work survives, more than in the case of any other Presocratic philosopher. Empedocles' death was mythologized by ancient writers, and has been the subject of a number of literary treatments.

(Source)