Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tabarani:7369al-Ḥusayn b. Isḥāq al-Tustarī > Muḥammad b. Ḥumayd al-Rāzī > al-Ḥakam b. Bashīr > ʿAmr b. Qays al-Mulāʾī > ʿĀṣim b. Abū al-Najūd > Zir b. Ḥubaysh > Atayt Ṣafwān b. ʿAssāl al-Murādī Faqumt > Bābih Fakharaj

[Machine] "What brought you here?" So I said, "You are a man who has accompanied the Prophet of Allah ﷺ and he has brushed on my chest over the two socks after using the restroom and urinating. Have you heard the Messenger of Allah ﷺ mention anything about it?" He said, "Yes, the Messenger of Allah ﷺ used to command us when we were traveling not to take off our socks for three days, except for using the restroom, urinating, or sleeping."  

الطبراني:٧٣٦٩حَدَّثَنَا الْحُسَيْنُ بْنُ إِسْحَاقَ التُّسْتَرِيُّ ثنا مُحَمَّدُ بْنُ حُمَيْدٍ الرَّازِيُّ ثنا الْحَكَمُ بْنُ بَشِيرٍ ثنا عَمْرُو بْنُ قَيْسٍ الْمُلَائِيُّ عَنْ عَاصِمِ بْنِ أَبِي النَّجُودِ عَنْ زِرِّ بْنِ حُبَيْشٍ قَالَ أَتَيْتُ صَفْوَانَ بْنَ عَسَّالٍ الْمُرَادِيَّ فَقُمْتُ عَلَى بَابِهِ فَخَرَجَ إِلَيَّ فَقَالَ

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


See similar narrations below:

Collected by Bayhaqī
bayhaqi:577Abū Muḥammad ʿAbdullāh b. Yūsuf al-Aṣbahānī > Abū Saʿīd b. al-Aʿrābī > Saʿdān b. Naṣr > Sufyān > ʿĀṣim b. Abū al-Najūd > Zir b. Ḥubaysh

[Machine] "I came to Safwan ibn 'Assal al-Muradi and said to him: I have an itching sensation in my chest when I wipe over my socks after relieving myself. I used to be one of the companions of the Prophet ﷺ , so I came to ask you if you have heard anything from the Messenger of Allah ﷺ regarding this matter. He replied: Yes, he used to command us that when we are traveling or on a journey, we should not remove our socks for three days and nights, except for janabah (major ritual impurity). But on the other hand, if it is due to urination, defecation, or sleep, we can remove them."  

البيهقي:٥٧٧أَخْبَرَنَا أَبُو مُحَمَّدٍ عَبْدُ اللهِ بْنُ يُوسُفَ الْأَصْبَهَانِيُّ نا أَبُو سَعِيدِ بْنُ الْأَعْرَابِيِّ نا سَعْدَانُ بْنُ نَصْرٍ نا سُفْيَانُ عَنْ عَاصِمِ بْنِ أَبِي النَّجُودِ عَنْ زِرِّ بْنِ حُبَيْشٍ قَالَ

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