This is the account of the heavens and the earth when they were created. When the LORD God made the earth and the heavens- and no shrub of the field had yet appeared on the earth and no plant of the field had yet sprung up, for the LORD God had not sent rain on the earth and there was no man to work the ground, but streams came up from the earth and watered the whole surface of the ground- the LORD God formed the man from the dust of the ground and breathed into his nostrils the breath of life, and the man became a living being.
Now, I understand that some believe that chapter 2 is a second creation. Just one of the things they claim as an inconsistency in the bible. That's not true. It's a more detailed account of the original account. The one thing I found interesting, reading this short passage by itself for the first time is that it says that "streams came up from the earth" as if they did it all by themselves. Now I'm not saying God wasn't in control, but I think some things He does set into motion ahead of time and of course, He reserves the right to intervene in that process any time He chooses and I believe does more often than we recognize. But remember, He's ultimately the one who made it the way it is to start out with, so He still planned it.