[Machine] Ask Ali ibn Abi Talib, for he used to go on military expeditions with the Messenger of Allah ﷺ . So I asked him and he said, "We used to perform Tayammum (dry ablution) for three days and nights for the traveler, and for the resident it was one day and night."
سَلْ عَلِيَّ بْنَ أَبِي طَالِبٍ فَإِنَّهُ كَانَ يَغْزُو مَعَ رَسُولِ اللهِ ﷺ فَسَأَلْتُهُ فَقَالَ كُنَّا نَمْسَحُ عَلَى عَهْدِ رَسُولِ اللهِ ﷺ ثَلَاثَةَ أَيَّامٍ وَلَيَالِيَهُنَّ لِلْمُسَافِرِ وَيَوْمٌ وَلَيْلَةٌ لِلْمُقِيمِ