Whatever benefit religion is to emotional stability, religion works (when it works) by coincidence or the placebo effect because god, heaven, and the soul do not exist. Faith is unreasonable in light of scientific truth and historical fact.
Today nobody would believe in the ancient Egyptian religion because it contradicts what we understand about the world around us: gods don't swallow the sun and birds can't bring anything back to life. These blatant misinterpretations of Nature discredit the validity of the pagans' core Super-Natural beliefs--a Supreme Being, a human soul, and heaven and hell. Yet curiously people today do believe in these four superstitions of religion: god, soul, heaven and hell. Apparently their origin has been erased by time. Would modern day Jews, Christians and Muslims discontinue belief in them if they realized their dubious origin: Ice-Age cavemen, wandering hunter-gatherers, and pagans? Or is faith an unreasonable emotion?
"Based solely on scientific principles and research, a book could be written counseling us humans about how to treat each other ethically. This book might contain a scientifically based purpose for humanity. Science-based principles of effective parenting could be taught in public schools so that all future parents would learn them."