Abraham Lincoln said this quote

It will not do to investigate the subject of religion too closely, as it is apt to lead to infidelity.