Surah Al-Kahf

18:97

فَمَا ٱسْطَٰعُوٓا۟ أَن يَظْهَرُوهُ وَمَا ٱسْتَطَٰعُوا۟ لَهُۥ نَقْبًۭا

Maka mereka tidak dapat memanjat tembok itu, dan mereka juga tidak dapat menebuknya.

Tafsir 18:97

So Gog and Magog were unable to climb over it due to its height nor were they able to make a hole in it from beneath due to its hardness.