But Darwin was a Christian all his life. He was even a supporter of Theistic evolution. In short theory of evolution is not incompatible with religious teachings. It is all God's design.
It is also said that he kept his The Origin of Species for 20 years before publishing it because he saw the offense it would cause to people who took a literal translation of the Bible.