Answer:
Hydrogen and helium compounds.
Step-by-step explanation:
We know that the solar System was formed around 4.6 billion years ago, due to the gravitational collapse of a giant interstellar molecular cloud.
This cloud is a type of interstellar cloud and its density and size permit the formation of molecules, most commonly molecular hydrogen.
Therefore the principal substances were found before planets began to form are hydrogen and helium compounds, besides Rocks, metals, most of them in gaseous form.
I hope it helps you!