عَنْ خُزَيْمَةَ بْنِ ثَابِتٍ رَضِيَ اللَّهُ عَنْهُ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ كَانَ يَقُولُ: ((يَمْسَحُ الْمُسَافِرُ ثَلَاثَ لَيَالٍ (وَفِي رِوَايَةٍ: ثَلَاثَةُ أَيَّامٍ وَلَيَالِيهِنَّ) وَالْمُقِيمُ يَوْمًا وَلَيْلَةً))
It is narrated from Sayyiduna Khuzaymah bin Thabit (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: A traveler may wipe (over the socks) for three days and nights, and a resident for one day and one night.