Sayyiduna Safwan bin Assal (may Allah be pleased with him) narrates: I came to the Messenger of Allah (peace and blessings be upon him) to ask about wiping over the leather socks. I said: "O Messenger of Allah, I have come to ask you about knowledge." He (peace and blessings be upon him) said: "The angels spread their wings for the seeker of knowledge out of pleasure with what he seeks. And about which knowledge are you asking?" I said: "O Prophet of Allah, about wiping over the leather socks." He (peace and blessings be upon him) said: "Yes, a day and a night for the resident, and three days for the traveller, because of defecation or urination; then he should perform (fresh) ablution."
Hadith Referenceالمعجم الكبير للطبراني / باب الصاد / 7342