New research suggests that when people have God or religion in mind, even subconsciously, they're more generous. According to a University of British Columbia study, participants who were subtly "primed" with religious concepts demonstrated more generosity than the control group. Interestingly, subjects who had identified themselves as non-religious weren't any less giving than believers. Also significant is that another group, primed instead with "civic responsibility" concepts, were as generous as the group primed with religious thoughts. From News@Nature:
"One idea that we seriously considered was that God, to those who believe, is a supernatural policing agent," says psychologist Azim Shariff…
"We can't compare the relative strengths of religion and civics, or draw tight analogies to real-world situations," says Shariff. "What we can do is identify that both concepts have substantial effects on prosocial behaviour."
UPDATE: Howard Rheingold, who has done extensive research on cooperation for a project with Institute for the Future (IFTF), says:
David Sloan Wilson has written extensively about theory in this respect in "Darwin's Cathedral," and this research supports his hypothesis.
If you want to get into real detail, there's Henrich and Henrich's recent book, "Why Humans Cooperate" that details how cultural evolution works with groups: individual humans learn by imitation; when one member of a group makes a discovery that enhances survival value, and that discovery spreads through the group, the fitness of the group improves. Again, according to cultural evolution theory, religion is an example of a norm that is internalized by members of the group, thus reducing dramatically the cost of policing, that constrains individual behavior but improves group fitness.
Link to buy Darwin's Cathedral, Link to buy Why Humans Cooperate, Link to the Cooperation Commons, a collaboration between Howard Rheingold and IFTF