You are side-stepping the question. Where does God enter this? People have been writing 'codes of law' since Urukagina (2,400 BCE), Ur-Nammu (2,100 BCE), Hammurabi (1,750 BCE). See details in Wikipedia. Hindus have had their Manusmṛiti, Yājñavalkya Smṛiti, etc. - and the latest by my grandfather in 1950, Vishweshwarasmriti
. A verse from Manusmriti:
"Evam yah sarvabhuteshu pashyatyātmānamātmanā l sa sarvasamatāmetya brahmābhyeti param padam ll"
(He who thus recognizes in his individual soul (Self, Atman), the universal soul that exists in all beings;
becomes equal-minded towards all, enters the highest state of Brahman) Manusmriti 12.125
"Collective unconscious (German: kollektives Unbewusstes), a term coined by Carl Jung, refers to structures of the unconscious mind which are shared among beings of the same species. According to Jung, the human collective unconscious is populated by instincts and by archetypes: universal symbols such as The Great Mother, the Wise Old Man, the Shadow, the Tower, Water, the Tree of Life, and many more."
Collective unconscious - Wikipedia
"A meme (/miːm/ MEEM) is an idea, behavior, or style that spreads from person to person within a culture—often with the aim of conveying a particular phenomenon, theme, or meaning represented by the meme. A meme acts as a unit for carrying cultural ideas, symbols, or practices, that can be transmitted from one mind to another through writing, speech, gestures, rituals, or other imitable phenomena with a mimicked theme. Supporters of the concept regard memes as cultural analogues to genes in that they self-replicate, mutate, and respond to selective pressures."
Meme - Wikipedia