Sunan Ibn Majah #478 · The Book of Purification and its Sunnah

Sunan Ibn MajahIt was narrated that Safwan bin 'Assal said
Sunan Ibn Majah · Book 1 · The Book of Purification and its Sunnah
Sunan Ibn Majah · كتاب 1 · كتاب الطهارة وسننها
"The Messenger of Allah used to command us not to take off our leather socks for three days except in the case of sexual impurity, but not in the case of defecation, urine or sleep (i.e. during travel)
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا سُفْيَانُ بْنُ عُيَيْنَةَ، عَنْ عَاصِمٍ، عَنْ زِرٍّ، عَنْ صَفْوَانَ بْنِ عَسَّالٍ، قَالَ كَانَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ يَأْمُرُنَا أَنْ لاَ نَنْزِعَ خِفَافَنَا ثَلاَثَةَ أَيَّامٍ إِلاَّ مِنْ جَنَابَةٍ لَكِنْ مِنْ غَائِطٍ وَبَوْلٍ وَنَوْمٍ ‏.‏
Reference : Sunan Ibn Majah 478In-book reference : Book 1, Hadith 212