It is narrated from Sayyiduna Mughirah bin Shu'bah (may Allah be pleased with him); he said: In the last military expedition we fought alongside the Messenger of Allah (peace and blessings be upon him), he (peace and blessings be upon him) commanded us to wipe over our leather socks: "For the traveller three days and their nights, and for the resident one day and one night, as long as he does not take them off."
Hadith Referenceالمعجم الكبير للطبراني / باب الميم / 18129