An interesting article on Ralws’ views on religion is found here. The article is written by Joshua Cohen and Thomas Nagel. Here’s a quote from the article:
the moral and social convictions that the thesis expresses in religious form are related in complex and illuminating ways to the central ideas of Rawls’s later writings on moral and political theory. His notions of sin, faith and community are simultaneously moral and theological, and despite fundamental differences they prefigure the moral outlook found in A Theory of Justice.