ENOfficial
Narrated Safwan bin ‘Assal (rad): When we were on a journey, the Prophet (ﷺ) used to command us to wear our leather socks for three days and three nights, whether we had to answer the call of nature or slept. However, in case of ejaculation or sexual impurity, he commanded us to remove the leather socks. .
Source: sunnah.com
Other translations
Arabic
وَعَنْ صَفْوَانَ بْنِ عَسَّالٍ - رضى الله عنه - قَالَ: { كَانَ رَسُولُ اَللَّهِ - صلى الله عليه وسلم -يَأْمُرُنَا إِذَا كُنَّا سَفْرًا أَنْ لَا نَنْزِعَ خِفَافَنَا ثَلَاثَةَ أَيَّامٍ وَلَيَالِيَهُنَّ, إِلَّا مِنْ جَنَابَةٍ وَلَكِنْ مِنْ غَائِطٍ, وَبَوْلٍ, وَنَوْمٍ } أَخْرَجَهُ النَّسَائِيُّ, وَاَلتِّرْمِذِيُّ وَاللَّفْظُ لَهُ, وَابْنُ خُزَيْمَةَ وَصَحَّحَاه ُ 1 .
sunnah.com