[Machine] The Messenger of Allah, ﷺ , did not travel except that he would pray two units (raka'at) before returning and he stayed in Makkah for twelve days, where he would pray two units (raka'at) and then say, "Oh people of Makkah, stand and pray two units (raka'at) as I am traveling." He then fought in the battles of Taif and Hunain, and prayed two units (raka'at), then he came to Jirrana and performed 'Umrah from there.
مَا سَافَرَ رَسُولُ اللهِ ﷺ إِلَّا صَلَّى رَكْعَتَيْنِ حَتَّى يَرْجِعَ وَأَقَامَ بِمَكَّةَ اثْنَيْ عَشَرَ يَوْمًا كَانَ يُصَلِّي رَكْعَتَيْنِ ثُمَّ يَقُولُ «يَا أَهْلَ مَكَّةَ قُومُوا فَصَلُّوا رَكْعَتَيْنِ فَأَنَا سَفْرٌ» وَغَزَا الطَّائِفَ وَحَنِينًا فَصَلَّى رَكْعَتَيْنِ ثُمَّ أَتَى الْجِعِرَّانَةَ فَاعْتَمَرَ مِنْهَا