Sunan an-Nasa'i, Book 1, Hadith 128 (In-Book)

It was narrated that Zirr said: "I asked Safwan bin 'Assal about wiping over the Khuffs, and he said: 'The Messenger of Allah used to tell us, when we were travelling, to wipe over our Khuffs and not take them off for three nights in the event of defecating, urinating or sleeping; only in the case of Janabah.'"

أَخْبَرَنَا أَحْمَدُ بْنُ سُلَيْمَانَ الرُّهَاوِيُّ، قَالَ حَدَّثَنَا يَحْيَى بْنُ آدَمَ، قَالَ حَدَّثَنَا سُفْيَانُ الثَّوْرِيُّ، وَمَالِكُ بْنُ مِغْوَلٍ، وَزُهَيْرٌ، وَأَبُو بَكْرِ بْنُ عَيَّاشٍ وَسُفْيَانُ بْنُ عُيَيْنَةَ عَنْ عَاصِمٍ، عَنْ زِرٍّ، قَالَ سَأَلْتُ صَفْوَانَ بْنَ عَسَّالٍ عَنِ الْمَسْحِ، عَلَى الْخُفَّيْنِ فَقَالَ كَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم يَأْمُرُنَا إِذَا كُنَّا مُسَافِرِينَ أَنْ نَمْسَحَ عَلَى خِفَافِنَا وَلاَ نَنْزِعَهَا ثَلاَثَةَ أَيَّامٍ مِنْ غَائِطٍ وَبَوْلٍ وَنَوْمٍ إِلاَّ مِنْ جَنَابَةٍ ‏.‏

sunnah.com