Mishkat al-Masabih #478
Purification
The Arabic includes the chain of narration (sanad) and the collector's commentary; the English translation shows the Prophet's words only.
عَن شُرَيْح بن هَانِئ قَالَ: سَأَلْتُ عَلِيَّ بْنَ أَبِي طَالِبٍ رَضِيَ اللَّهُ عَنْهُ عَنِ الْمَسْحِ عَلَى الْخُفَّيْنِ فَقَالَ: جَعَلَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ثَلَاثَةٌ أَيَّامٍ وَلَيَالِيَهُنَّ لِلْمُسَافِرِ وَيَوْمًا وَلَيْلَةً لِلْمُقِيمِ. رَوَاهُ مُسلم
Shuraih b. Hani' said, “I asked ‘Ali b. Abu Talib about wiping over the shoes and he replied that God’s messenger had appointed three days and nights as the period when a traveller may do it and one day and night as the period for one who is not travelling.”
Muslim transmitted it.
About Mishkat al-Masabih
This hadith is #478 from Mishkat al-Masabih, in the Book of Purification.