ASV notes on Genesis 2:4-9
Seven days had passed, it was seven evenings and mornings, and the days were real days, 24 hour days. The heavens and the earth were there to be seen, but nothing else. Then God changed the desolate land into the beautiful life-giving Garden of Eden, with animals, fish and birds. He also needed someone there to look after it all.
From verse 5 we understand that the ground of the earth was filled with seeds ready to sprout and grow when water was added, and God made a mist to water the entire surface of the earth and all kind of plants and trees started to sprout all over the earth. Then God made the Garden of Eden for man to live in. God put man He had created in the garden for them to enjoy cultivating it and to eat of the trees.
In verse 9 God caused to grow from the ground every tree ….. And we can anticipate that it took a time for the trees to grow and give fruit, may be 20 years before He formed man from the dust and put him in the garden to cultivate it and live there. Also, God put in the midst of the Garden the tree of life and the tree of the knowledge of good and evil, one of them the man could eat from, but from the tree of the knowledge of good and evil, the man could not eat.
Why did God put the forbidden tree in the garden, and made it look so desiring filled with beautiful fruits. It might be easy to accept and may be to understand, but it is difficult to explain. God made man with a free will to choose, God loved His creation and it might be that God wanted His love to be returned back to Him, not as something automatic, but by the freedom to choose. God does not force us to love Him, we have to decide to leave this world, change our lives, sacrifice the easy way and follow Him on the narrow road called Jesus.