عَنْ عَبْدِ الرَّحْمَنِ بْنِ أَبِي لَيْلَى عَنْ مُعَاذِ بْنِ جَبَلٍ رَضِيَ اللَّهُ عَنْهُ قَالَ: كَانَ النَّاسُ عَلَى عَهْدِ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ إِذَا سُبِقَ الرَّجُلُ بِبَعْضِ صَلَاتِهِ سَأَلَهُمْ فَأَوْمَأُوا إِلَيْهِ بِالَّذِي سُبِقَ بِهِ مِنَ الصَّلَاةِ فَيَبْدَأُ فَيَقْضِي مَا سُبِقَ ثُمَّ يَدْخُلُ مَعَ الْقَوْمِ فِي صَلَاتِهِمْ، فَجَاءَ مُعَاذُ بْنُ جَبَلِ وَالْقَوْمُ قُعُودٌ فِي صَلَاتِهِمْ فَقَعَدَ فَلَمَّا فَرَغَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ قَامَ فَقَضَى مَا كَانَ سُبِقَ بِهِ، فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ: ((اصْنَعُوا كَمَا صَنَعَ مُعَاذٌ))
Sayyiduna Mu’adh bin Jabal (may Allah be pleased with him) says: In the time of the Messenger of Allah (peace and blessings be upon him), when someone missed part of the prayer, he would come and ask (the earlier worshippers) how many rak‘ahs had been performed; they would indicate to him, then he would begin by performing the missed rak‘ahs and then join the congregation with the people. One day it happened that I (Mu’adh) came and the people were sitting in (the tashahhud of) the prayer, so I also sat down. When the Messenger of Allah (peace and blessings be upon him) finished, I stood up and performed the rak‘ahs that I had missed. The Messenger of Allah (peace and blessings be upon him) said: Just as Mu’adh has done, you should do the same in the future.