Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:18:97

So Gog and Magog were unable to pass over it, nor were they able ˹to effect˺ in it any penetration.  

And so they, Gog and Magog, were not able to scale it, to climb up its length, because of its ˹great˺ height and smoothness, nor could they pierce it, because of its firmness and thickness.
القرآن:١٨:٩٧

فَمَا اسْطَاعُوا أَنْ يَظْهَرُوهُ وَمَا اسْتَطَاعُوا لَهُ نَقْبًا  

{فما اسطاعوا} أي يأجوج ومأجوج {أن يظهروه} يعلوا ظهره لارتفاعه وملاسته {وما استطاعوا له نقبا} لصلابته وسمكه.