The Qur’an is the word of Allah. It is, therefore, the ever eloquent and emphatic book. Allah has challenged humankind and the jinn to compile a similar book, but they have proven incapable of doing it, even to articulate just one surah like one of its surahs. Though they were the best Arabic-speaking people, they fell short of compiling a similar book or part of it, simply because it is Allah’s revelation and words. This challenge has remained throughout history, and no person has been able to produce anything like the Qur’an.
Consequently, the Qur’an, the word of Allah, remains free of contradictions and discrepancy. It also comes consistent with the sound facts of knowledge as being the word of the Creator of the world and all that exists. The scientific dimension in the Qur’an reflects and asserts its divinity, as it has been transformed to humanity through an illiterate person (Prophet Muhammad peace and blessings be upon him). There may be some verses that look ambiguous and contradicted, but when referred to scholars and brought along with other correspondent verses,
it comes out that they are exactly right and the problem lies in our understanding.
Responding to the question, Dr. Rajab Abu Maleeh, stated,
The verses of the Qur’an indicate that mountains serve to keep the earth stable and prevent it from shaking while people are over it. Allah, the Almighty, says, (And the mountains as pegs?) (An-Naba’ 78: 7). And He says, (And We have set on the earth mountains standing firm, lest it should shake with them, and We have made therein broad highways (between mountains) for them to pass through: that they may receive Guidance) (Al-Anbiyaa’ 21: 31).
however, these verses do not contradict with the occurrence of earthquakes and volcanoes in mountainous and hilly places. Occurrence of earthquakes and volcanoes is exceptional and is not a normal case. Moreover, it is scientifically established that when a volcano bursts out, its lava may give rise to a mountain, then it would burst out again and again. Will we take this as against the verses of the Qur’an? As stated, this is an exceptional case.
there may be a wisdom behind this, which is reminding people of Allah’s graces to them and to let them keep away from approaching sins and injustice.