[Machine] The Messenger of Allah, ﷺ , traveled and stayed for nineteen days, praying two units of prayer at a time. Ibn Abbas said, "When we travel and stay for nineteen days, we pray two units of prayer at a time. And when we stay for longer than that, we pray four units." This is also mentioned in the hadith of Abu Khaythamah and Surayj, that the number is nineteen units.
سَافَرَ رَسُولُ اللهِ ﷺ سَفَرًا فَأَقَامَ تِسْعَةَ عَشَرَ يُصَلِّي رَكْعَتَيْنِ رَكْعَتَيْنِ وَقَالَ ابْنُ عَبَّاسٍ فَنَحْنُ إِذَا سَافَرْنَا فَأَقَمْنَا تِسْعَةَ عَشَرَ صَلَّيْنَا رَكْعَتَيْنِ رَكْعَتَيْنِ وَإِذَا أَقَمْنَا أَكْثَرَ مِنْ ذَلِكَ صَلَّيْنَا أَرْبَعًا وَكَذَلِكَ فِي حَدِيثِ أَبِي خَيْثَمَةَ وَسُرَيْجٍ تِسْعَ عَشْرَةَ