Internal waves are gravity waves that oscillate within a fluid medium, rather than on its surface. To exist, the fluid must be stratified: the density must decrease continuously or discontinuously with depth/height due to changes, for example, in temperature and/or salinity.
The internal waves travel more slowly than surface waves of similar amplitude because the difference in density between two water masses is much less than it is between air and water. The internal waves typically have wavelengths from hundreds of meters to tens of kilometers and have periods from several minutes to several hours. Internal waves are trapped in the pycnocline of stratified oceans.
It is easier for internal waves to travel between layers of different densities at the pycnocline. In open oceans this is much deeper than the photic zone. This means that those waves travel in complete darkness. The Quran talked about those internal waves long before it was discovered:
٤٠ أَوْ كَظُلُمَاتٍ فِي بَحْرٍ لُجِّيٍّ يَغْشَاهُ مَوْجٌ مِنْ فَوْقِهِ مَوْجٌ مِنْ فَوْقِهِ سَحَابٌ ۚ ظُلُمَاتٌ بَعْضُهَا فَوْقَ بَعْضٍ إِذَا أَخْرَجَ يَدَهُ لَمْ يَكَدْ يَرَاهَا ۗ وَمَنْ لَمْ يَجْعَلِ اللَّهُ لَهُ نُورًا فَمَا لَهُ مِنْ نُورٍ
"Waves topped by waves, topped by clouds" are internal waves, surface waves then clouds. In deep oceans you cannot see your hand because there is no light down there. So in deep oceans those internal waves travel in darkness. No mistakes in the Quran.
How could an illiterate man who lived 1400 years ago have known that seas have internal waves? How could he have known that they travel in darkness?
The Quran (Koran, the book of Islam) contains scientific knowledge that could not have been known 1400 years ago. It ranges from basic arithmetics to the most advanced topics in astrophysics. You are invited to go through those miracles and judge for yourself.