The Quran does present the existence of seven heavens and "of the earth the like of them" as part of God's creation. But it does not say that there are seven Earth-sized planets visible to astronomers, nor does it specify a geological model that modern science must confirm.
The objection in its strongest form
The objection is reasonable if the verse is treated as a concrete claim about the observable universe. Quran 65:12 appears to give a definite number: seven heavens and seven corresponding earths. Yet astronomy has not found seven Earths, and geology does not identify seven separate worlds beneath our feet. This seems different from a broad or metaphorical statement that can be adjusted after the fact.
On that reading, the verse appears to make a physical prediction, and the absence of evidence counts against it. A Muslim should not answer by claiming that scientists have already discovered the seven earths when they have not. That would go beyond the text and beyond the evidence.
What the verse actually says
"Allah is He Who created seven heavens and of the earth the like of them. [His] command descends among them so you may know that Allah is over all things competent and that Allah has encompassed all things in knowledge."
Quran 65:12
The Arabic wording says "of the earth the like of them." The standard classical understanding is that God created seven earths, although scholars differed over their precise arrangement and nature. "Like them" establishes a correspondence, especially in number; it does not necessarily mean seven planets identical to Earth, or seven geological layers inside this planet.
This reading is also supported by authentic hadith. The Prophet Muhammad (PBUH) warned against unjustly taking land:
"Whoever wrongfully takes a handspan of land, Allah will make him wear around his neck seven earths."
Sahih al-Bukhari and Sahih Muslim
That confirms that "seven earths" was understood as a real created matter, not merely a poetic reference to seven continents. Yet neither the verse nor the hadith tells us that these earths are all within our observable cosmos, inhabited, Earth-like, or accessible by present scientific instruments.
What this does and does not establish
It does establish that the Quran and authentic Sunnah affirm seven created earths in some real sense. It does not establish a claim that geology or astronomy is currently expected to observe seven planets. The unseen world includes realities that empirical science may not be able to access, and the verse itself gives no testable mechanism or location.
Therefore, the absence of astronomical or geological confirmation is not a refutation. At the same time, Muslims should not present this verse as a proven scientific miracle. It is a statement about God's creation, whose exact physical nature the revelation leaves unspecified. That is a narrower claim, but it is the claim the text actually makes.