Sunan Ibn Majah, Book 25, Hadith 3044 (In-Book) ⓘ
It was narrated from Ibn ‘Umar that the Messenger of Allah said: “Whoever does not have sandals let him wear leather socks, and let him cut them to below the ankle.”
حَدَّثَنَا أَبُو مُصْعَبٍ، حَدَّثَنَا مَالِكُ بْنُ أَنَسٍ، عَنْ نَافِعٍ، وَعَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ، عَنِ ابْنِ عُمَرَ، أَنَّ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ قَالَ " مَنْ لَمْ يَجِدْ نَعْلَيْنِ فَلْيَلْبَسْ خُفَّيْنِ وَلْيَقْطَعْهُمَا أَسْفَلَ مِنَ الْكَعْبَيْنِ " .
also referenced under: Hadith 2932 (Reference) & Volume 4, Book 25, Hadith 2932 (DarusSalam)