Where did the early materials come from when the early earth was formed?
From the stellar cloud that formed the Sun.
Sometime before 5 billion years ago, a cloud of gas and dust formed in our galaxy. That cloud would. mostly colapse into our Sun between 5 and 4.6 billion years ago. Whatever was left coalesced into the rest of the solar system, from the planets to the Oort cloud.