In his younger years, Lincoln was a skeptic. But as he aged, he turned toward biblical wisdom—and not only when in the public eye.