Aslam

Surah Al-Kahf — 18:97
فَمَا ٱسۡطَٰعُوٓاْ أَن يَظۡهَرُوهُ وَمَا ٱسۡتَطَٰعُواْ لَهُۥ نَقۡبٗا
And so the enemies could neither scale nor tunnel through it.

Commentary

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.

Read Tafsir Ibn Kathir