It is narrated from Hazrat Khuzaimah bin Thabit (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) used to say that a traveler can wipe over his leather socks for three nights, and a resident for one day and one night.
Hadith Referenceمسند احمد / مسند الأنصار رضي الله عنهم / 21853
Hadith Gradingحکم دارالسلام:حديث صحيح، وقد اختلف فيه على إبراهيم التيمي