The Prophet ﷺ said: The time limit for wiping over the socks for a traveller is three days (and three nights) and for a resident it is one day and one night. Abu Dawud said: Another version adds: Had we requested him to extend (the period of wiping), he would have extended. (Using translation from Abū Dāʾūd 157)
عَنِ النَّبِيِّ ﷺ قَالَ فِي الْمَسْحِ عَلَى الْخُفَّيْنِ «لِلْمُسَافِرِ ثَلَاثَةُ أَيَّامٍ وَلَيَالِيهِنَّ وَلِلْمُقِيمِ يَوْمٌ وَلَيْلَةٌ»