God says he shaped us from clay, like a potter.
That's not exactly accurate. This brings to mind the childish story of God forming a clay figurine in the shape of a man, and then "breathing" life into it, thus turning it into a living being, whom He named "Adam" and placed in the Garden of Aden. Subsequently, this "Adam" became bored all alone, so God took one of his crooked ribs and created "Eve" from it.
This is the stuff that you find in the Old Testament.
What science has been able to prove so far, and beyond any shadow of a doubt, is that the earliest Homo Sapiens (fully developped humans like us), first appeared on this planet some 50,000 - 60,000 years ago, and that, for a time, they existed SIDE BY SIDE with primitive Neanderthals (Cro Magnon).
What science has NOT been able to determine so far is how / when exactly did the jump from Neanderthal to human take place. The answer, as the Quran tells us, is found in the "Histories of the Ancients" (Arabic: Asateer ul' Awwaleen).
Interestingly, the word "History" comes from latin
Istoria which, in Arabic, is
Oustoora The plural of
Oustoora is
Asateer, which is usually rendered as "legends".
The ancient tablets and scriptures of Yemen, the Nile valley, and Mesopotamia, all point to some divine power, sometimes expressed as heavenly beings (malai'ka - anunaki - etc...) commanded by some greater power (Rahman - Mardukh - Enki - etc...) to REPROGRAM the savage Neanderthal man and make him more "Godlike".
The Quran expresses this as "breathing of the Ruuh" into a primitive and bloodsheding species (Cro Magnon) and turning it into Homo-Sapien. This basically means that there was some form of
divine intervention that took place. The Quran mentions the "Histories of the Ancients" in a context that most Muslims today failed to grasp. In fact, when the rejecters during Muhammad's time heard him recite verses describing the Creation and Resurrection (Era of Judgement), they immediately dismissed Muhammad's words as "Asateer'ul Awwaleen". This means that the Quran is in fact not denying that its verses - as far as those subjects are concerned - are somewhat similar to these ancient "Legends".
As to what exactly is this "Ruuh" (Spirit of Divinity), we will not really know:
{And they ask you concerning the Ruuh Say: "The Ruuh is from the authority of my Rabb and the knowledge you were given was but very little.}...[17:85]This means that some intervention must have taken place somewhere.
As for how the primitive and savage pre-humans came to being in the first place, I can say for certain that they did NOT evolve from apes. The most correct theory, and the one that most agrees with the Quran, in my humble opinion, was first openly discussed by the scholars of Al-Andalus (Moorish Spain), in the 13th Century A.D, but it was never accepted by the official schools of thought (They considered it "aberrant" and tantamount to blasphemy of course): It talks about humanoids being born directly from the earth, hatching from embryos in the mud.
You might want to check out this thread:
http://free-minds.org/forum/index.php?topic=9602939.0