Fine an "upper being" did it, now the question remains HOW.~^
Initially stars formed due to gavitation drawing Hyroden atoms together, when the mass of hydrogen present in a region becomes large enough gravitaional forces overpower the atoms electonic and nuclear forces and a fusion reaction starts. The nuclear fires first burn Hydrogen to Helium then the Helium begins to fuse to continue the reaction. As the stars evolve heavier and heavier elements are formed in this manner. A stars volumn is a balance between graviational forces and the intensity of the fustion reaction. The intensity is determined by which elements are fusing, the heavyer the elelments the cooler the "fire". As the lighter elements are consumed in the fire and the fire cools gravitaional colapases occur, when the mass of the star is large enough a gravitational colapase can be followed by a tremendous explosion, called a Nova or Super Nova, depending on its magnetude. During these events the elements present can be fused to even heavier elements, Iron and all heavier elements have been created due to a Nova event as they will not fuse and release energy thus cannot be created in a normal fusion fire.
Now we are finally getting the raw matererial need for planets, Planets have a iron core, iron is essentially the "ashes" of a nuclear fire, it will not release energy either through fission or fusion. These ashes tend to collect in rings surrounding stars that have been through a gravitational colapse. Gravity then tends to gather the indivdual particals into spheres that we call planets.
Think about this for a moment, every atom in your body was created by a solar fire that then novaed. Talk about eterity, there is your eternal life.
I personally am not privy to the workings of the Gods, the above is my crude discription of what mankind has pieced together by observing what is happening in the universe around us, if a god caused it to happen then the above is the methods it used to accoplish the task.