You seem to be certain there is a there there. What convinced you there is a divine, or that souls exist and live on after our body dies? We can trace the growth in such beliefs. Early humans embraced animism because they could not understand why things happened. They reckoned that a rock slide occurred because they had not adequately appeased the spirit animating the rocks. Over time, animistic beliefs gave way to the thought that individual gods, such as the sun and rain gods, controlled the more essential aspects of human life.
We can trace religious beliefs from their animistic origins through the syncretic steps they made from the oldest known religions to today's world of belief systems. What is missing is any demonstration that the belief in magic has any foundation in truth.