In the beginning God created the heaven and the earth. 2And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the waters.
In Genesis 1:2 a body of water “the deep” was present before creation.
If this material was used in creation then the 1st law of thermodynamics was not broken.
Δ U = Q – W