This was answered by Larry Arnhart a few years ago;
These are some of the topics we might ponder as we celebrate the birthday of Abraham Lincoln and Charles Darwin.
On February 12, 1809, Abraham Lincoln was born in Hardin County, Kentucky; and Charles Darwin was born in Shrewsbury, England.
The coincidence of their being born on the same day might lead us to think about other points of similarity in their lives.
William Herndon was Lincoln's friend and law partner, and he wrote one of the best biographies of Lincoln. He says that he gave Lincoln a copy of Robert Chambers' book Vestiges of the Natural History of Creation, which was first published in 1844. Chambers set forth a theory of evolution that Darwin later acknowledged as a forerunner of his theory. Chambers' book created a great controversy, because many people saw it as denying the role of God as Creator of the universe. According to Herndon, Lincoln was persuaded to adopt this new theory of evolution, because it confirmed his belief that everything in the universe must occur by natural causes. So it seems that Lincoln and Darwin were in agreement in their scientific naturalism and evolutionary views.
Because of their reliance on scientific explanation, both Lincoln and Darwin were accused by some people of promoting atheism by denying the doctrine of Creation. According to Herndon, Lincoln as a young man wrote a book against Christianity arguing that the Bible was not divinely inspired and that Jesus was not the son of God. He was warned by his friends that it was dangerous to make such arguments in public.
In 1846, Lincoln was running for election to Congress, and he had to answer the charge that he was an "infidel." In his written response, he acknowledged that he had never been a member of any Christian church. But he insisted that he had never openly promoted disrespect for Christianity. He conceded that he had defended--in private with a few friends--the "doctrine of necessity" that the human mind is determined by causal necessity beyond its control. But he thought some Christian denominations defended the same doctrine. Moreover, he wrote: "I do not think I could myself be brought to support a man for office, whom I knew to be an open enemy of, and scoffer at, religion. Leaving the higher matter of eternal consequences, between him and his Maker, I still do not think any man has the right thus to insult the feelings, and injure the morals, of the community in which he may live."
Lincoln often spoke as if God as Creator must be the First Cause of the universe, and he also commonly invoked the Bible as a source of moral teaching. And yet he also appealed to a natural "moral sense" inherent in human nature, which suggested a natural morality that did not depend on biblical doctrine.
One manifest expression of the "moral sense," according to Lincoln, was the moral feeling against slavery. To reinforce this moral feeling that slavery was unjust, Lincoln would quote the scriptural doctrine of human beings as created in God's image and the scriptural teaching of the golden rule. He did this despite the fact that the pro-slavery Christians in the American South quoted the specific passages on slavery in the Bible as supporting slavery.
On all of these points, Darwin took similar positions. Although he began life as an orthodox Christian, he eventually reached a point of being a skeptic or agnostic. He was particularly disturbed by the unmerited suffering of human beings--such as his child Annie, who died when she was 10 years old--as casting doubt on the existence of an all-good God. And yet he acknowledged that the First Cause of the universe was a mystery pointing to the existence of God. In his published writings, he regularly acknowledged that evolution might depend ultimately on the laws that the Creator had impressed on matter.
Darwin also agreed with Lincoln in seeing morality as rooted in a natural "moral sense." Although this natural morality could stand on its own, it could also be reinforced by biblical morality. Like Lincoln, Darwin saw the Bible's teaching of the golden rule as confirming the ultimate principle of natural morality.
Darwin was also a fervent critic of slavery as contrary to the natural moral sense. Against the scientific racists who argued that the human races were actually separate species, Darwin laid out the evidence for the universal traits shared by all human races as members of the same species.