"The Messenger of Allah traveled on a journey and he prayed two Rak'ah for nineteen days." Ibn Abbas said: "So when we would stay somewhere for nineteen (days) we would pray two Rak'ah , and if we stayed longer than that we would complete the Salat."
سَافَرَ رَسُولُ اللَّهِ ﷺ سَفَرًا فَصَلَّى تِسْعَةَ عَشَرَ يَوْمًا رَكْعَتَيْنِ رَكْعَتَيْنٍ قَالَ ابْنُ عَبَّاسٍ فَنَحْنُ نُصَلِّي فِيمَا بَيْنَنَا وَبَيْنَ تِسْعَ عَشْرَةَ رَكْعَتَيْنِ رَكْعَتَيْنِ فَإِذَا أَقَمْنَا أَكْثَرَ مِنْ ذَلِكَ صَلَّيْنَا أَرْبَعًا