حَدَّثَنَا عَلِيُّ بْنُ عَبْدِ الْعَزِيزِ، ثنا مُسْلِمُ بْنُ إِبْرَاهِيمَ، ثنا شُعْبَةُ، عَنْ أَبِي إِسْحَاقَ، عَنْ أَبِي السَّفَرِ، عَنْ سَعِيدِ بْنِ شُفَيٍّ، عَنِ ابْنِ عَبَّاسٍ أَنَّ النَّبِيَّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ: «كَانَ إِذَا خَرَجَ مِنْ بَيْتِهِ صَلَّى رَكْعَتَيْنِ رَكْعَتَيْنِ حَتَّى يَرْجِعَ»
It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that when the Prophet (peace and blessings be upon him) left his home, he would pray two rak'ahs at a time until he returned.