A reason given for not strutting
The argument made is physical, not moral.
وَلَا تَمْشِ فِى ٱلْأَرْضِ مَرَحًا ۖ إِنَّكَ لَن تَخْرِقَ ٱلْأَرْضَ وَلَن تَبْلُغَ ٱلْجِبَالَ طُولًا
Wa lā tamshi fi-l-arḍi maraḥā, innaka lan takhriqa-l-arḍa wa lan tablugha-l-jibāla ṭūlā.
“And do not walk upon the earth exultantly. Indeed, you will never tear the earth [apart], and you will never reach the mountains in height.1”
Source
The Qur'an · 17:37
Qur'an
- Qur'anic text in the Uthmani script via Quran.com; translation: Saheeh International