I came to 'A'isha to ask her about wiping over the socks. She said: You better ask ('Ali) son of Abu Talib for he used to travel with Messenger of Allah ﷺ. We asked him and he said: The Messenger of Allah ﷺ stipulated (the upper limit) of three days and three nights for a traveller and one day and one night for the resident.
عَلَيْكَ بِابْنِ أَبِي طَالِبٍ فَسَلْهُ فَإِنَّهُ كَانَ يُسَافِرُ مَعَ رَسُولِ اللَّهِ ﷺ فَسَأَلْنَاهُ فَقَالَ جَعَلَ رَسُولُ اللَّهِ ﷺ ثَلاَثَةَ أَيَّامٍ وَلَيَالِيَهُنَّ لِلْمُسَافِرِ وَيَوْمًا وَلَيْلَةً لِلْمُقِيمِ قَالَ وَكَانَ سُفْيَانُ إِذَا ذَكَرَ عَمْرًا أَثْنَى عَلَيْهِ