Sometime after the creation of Adam and Eve on the sixth day of creation, see Genesis 1:26-31, they rebelled against God by eating the fruit of the tree of the knowledge of good and evil.
By doing so they brought sin into the world and upon all of humanity. The details of this are in Genesis 3:1-24.
“Now the word of the Lord came to me, saying, ‘Son of man, set your face against Gog, of the land of Magog, the prince of Rosh, Meshech, and Tubal, and prophesy against him, and say, “Thus says the Lord God: ‘Behold, I am against you, O Gog, the prince of Rosh, Meshech, and Tubal.’”’” Ezekiel 38:1-3.
“The hand of the Lord came upon me and brought me out in the Spirit of the Lord, and set me down in the midst of the valley; and it was full of bones. Then He caused me to pass by them all around, and behold, there were very many in the open valley; and indeed they were very dry. And He said to me, ‘Son of man, can these bones live?’ So I answered, ‘O Lord God, You know.’” Ezekiel 37:1-3.
“The hand of the Lord came upon me and brought me out in the Spirit of the Lord, and set me down in the midst of the valley; and it was full of bones. Then He caused me to pass by them all around, and behold, there were very many in the open valley; and indeed they were very dry. And He said to me, ‘Son of man, can these bones live?’ So I answered, ‘O Lord God, You know.’” Ezekiel 37:1-3.