Sayyiduna Safwan bin Assal Muradi, may Allah be pleased with him, says: I asked the Messenger of Allah, peace and blessings be upon him: May I wipe over the leather socks, O Messenger of Allah, peace and blessings be upon him? He, peace and blessings be upon him, said: "Yes! The traveler is permitted for three days not to remove the leather socks due to urination, defecation, or sleep, and the resident is permitted for one day."
Related hadith on this topic