[Machine] The Messenger of Allah ﷺ used to pray two units of optional prayer every time he left his house for travel until he returned. This is narrated by Ibn Abbas and Imran ibn Husayn regarding the palace of the Prophet ﷺ in Mecca during the year of the Conquest.
كَانَ رَسُولُ اللهِ ﷺ إِذَا خَرَجَ مِنْ بَيْتِهِ مُسَافِرًا صَلَّى رَكْعَتَيْنِ رَكْعَتَيْنِ حَتَّى يَرْجِعَ وَقَدْ مَضَى حَدِيثُ ابْنِ عَبَّاسٍ وَعِمْرَانَ بْنِ حُصَيْنٍ فِي قَصْرِ النَّبِيِّ ﷺ بِمَكَّةَ عَامَ الْفَتْحِ