Bulugh al-Maram 65
وَعَنْ أَبِي بَكْرَةَ - رضي الله عنه - عَنِ النَّبِيِّ - صلى الله عليه وسلم: «أَنَّهُ رَخَّصَ لِلْمُسَافِرِ ثَلَاثَةَ أَيَّامٍ وَلَيَالِيَهُنَّ, وَلِلْمُقِيمِ يَوْمًا وَلَيْلَةً, إِذَا تَطَهَّرَ فَلَبِسَ خُفَّيْهِ: أَنْ يَمْسَحَ عَلَيْهِمَا. أَخْرَجَهُ الدَّارَقُطْنِيُّ, وَصَحَّحَهُ ابْنُ خُزَيْمَةَ.
From Abu Bakrah, may Allah be pleased with him, from the Prophet ﷺ: He granted a concession to the traveller of three days and their nights, and to the resident of a day and a night, when he has purified himself and then put on his leather socks, to wipe over them. Reported by ad-Daraqutni, and Ibn Khuzaymah graded it sahih.