This was originally written as a
comment on The Secular Outpost.
I think morals came before religion. No matter what species of living entities you look at--whether animal, insect, other creeping, swimming, hopping, or flying things, or human--every last one of them has means by which to ensure the survival of the species. Exceptions occur in the case where unprecedented powers of the predator are exerted as when humans hunt a certain animal practically to extinction for its fur or ivory.
I find it quite easy to see a relationship between the ensurance of survival of the species and morals and religion. Human moral codes have for their basis nothing other than ensuring the survival of the species. Since there is no higher aim for humanity than to retain its species alive for one more generation, it logically follows that the principles by which survival is retained are sacred.
When something is sacred, you have to pass it on to posterity. To ensure that it is remembered and passed on, rhyme and ritual and ceremony are very helpful. Is any of this reminiscent of religion???
Of course, it helps if stories are attached to the rhymes and rituals and ceremonies--stories that drive home the absolute need to live in a certain way, stories that show what happens when humans fail to "keep the commands." I think it's far more complicated than this but it makes sense in my mind that morals pre-exist religion. And they don't die with religion, either, because--well--wouldn't we hate seeing our species head into extinction? If this is rather hard to conceptualize, just imagine that you were the youngest human being alive on planet earth and that chances for you or your generation to have kids are zero.
So that might prove the connection between morals and religion, but how do we prove that morals have as their basis the survival of the species? I'm trying to think of an example that would not lead to strife in short order and I can't think of a single one.
Whether it is to say hi when you meet a friend on the street or to drive on a specific strip of roadway, blatant and intentional violation has a pretty high potential of leading to strife on some level or another. It is probably not necessary to explain the relationship between strife and the potential annihilation of our species. Thus, religious or not, we're going to be moral.
Perhaps the nonreligious have more reason to be moral than the religious. The religious can always trust God to somehow or other prevent annihilation. Those of us who are nonreligious know what a major role we play as individuals to make this world the kind of place that is species-friendly.