Sunan Ibn Majah, Book 25, Hadith 51 (Ibn Majah 2934)

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.”