[Machine] People during the time of the Messenger of Allah ﷺ used to ask someone who has preceded them in their prayer to lead them in prayer. They would gesture to him with what he has preceded in prayer and he would start by completing what he has preceded. Then, he would join the people in their prayer.
One day, Mu'adh bin Jabal came and the people were sitting while performing their prayer. Mu'adh sat down and when the Messenger of Allah ﷺ finished, he stood up and completed what he has preceded. Then, the Messenger of Allah ﷺ said, "Do as Mu'adh did."
كَانَ النَّاسُ عَلَى عَهْدِ رَسُولِ اللهِ ﷺ إِذَا سُبِقَ الرَّجُلُ بِبَعْضِ صَلَاتِهِ سَأَلَهُمْ فَأَوْمَئُوا إِلَيْهِ بِالَّذِي سُبِقَ بِهِ مِنَ الصَّلَاةِ فَيَبْدَأُ فَيَقْضِي مَا سُبِقَ ثُمَّ يَدْخُلُ مَعَ الْقَوْمِ فِي صَلَاتِهِمْفَجَاءَ مُعَاذُ بْنُ جَبَلٍ وَالْقَوْمُ قُعُودٌ فِي صَلَاتِهِمْ فَقَعَدَ فَلَمَّا فَرَغَ رَسُولُ اللهِ ﷺ قَامَ فَقَضَى مَا كَانَ سُبِقَ بِهِ فَقَالَ رَسُولُ اللهِ ﷺ اصْنَعُوا كَمَا صَنَعَ مُعَاذٌ