[Machine] If I prayed before or after it, I would complete it. I accompanied the Prophet ﷺ until he passed away, and he would not exceed two Rak'ahs. Abu Bakr, until he passed away, would not exceed them either, and Umar and Uthman were the same.
لَوْ كُنْتُ مُصَلِّيًا قَبْلَهَا أَوْ بَعْدَهَا لَأَتْمَمْتُهَا صَحِبْتُ النَّبِيَّ ﷺ حَتَّى قُبِضَ فَكَانَ لَا يَزِيدُ عَلَى رَكْعَتَيْنِ وَأَبَا بَكْرٍ حَتَّى قُبِضَ فَكَانَ لَا يَزِيدُ عَلَيْهِمَا وَعُمَرَ وَعُثْمَانَ كَذَلِكَ