He declared frequently that he would do anything to save the Union, and among the many things he did was the partial concealment of his individual religious opinions.
Context: Lincoln was a deist but he was never a favorite of the official clergy of any of the religions. When he ran for President in 1860, 20 of the 23 clergymen of his home town, Springfield, IL, opposed him. As he assumed office he was much more prudent in his religious remarks and in the view of some historians political realities and pragmatics caused him to be more circumspect. His oldest friend and law partner believed him to be an unbeliever. See the linked quotes for additional context.
New York World, Referring to Abraham Lincoln, ~ 1875
Sourced by: Eigen's Political and Historical Quotations