I have been reading some physics articles ,including some about quantum physics ,and one author asked what came first ,mind or matter ?

Is it so that the quran tells the story of the creation of Adam ,and when God told the Angels once the spirit is inside the body ,they have to prostrate before Adam ?
And there is also narrations about Iblis inspecting Adams body ,during one of the stages of the creation of Adam while in the stage of sounding clay.

Or does it just mean that the soul was there before but not united with the body that was to be put on earth ?

- - - Updated - - -

“In the New Story of science the whole universe–including matter, energy, space, and time–is a one-time event and had a definite beginning. But something must have always existed; for if ever absolutely nothing existed, then nothing would exist now, since nothing comes from nothing. The material universe cannot be the thing that always existed because matter had a beginning. It is 12 to 20 billion years old. This means that whatever has always existed is non-material. The only non-material reality seems to be mind. If mind is what has always existed, then matter must have been brought into existence by a mind that always was. This points to an intelligent, eternal being who created all things. Such a being is what we mean by the term God

- - - Updated - - -

Also what do you think is the theory behind consciousness affecting matter at quantum level ? I can't seem to find an explanation to it ,other than what many scientists who believe in God who said that the connection between the material world and the non-material (mind ,consciousness) shows the Atheists that matter is not independent.