حَدَّثَنَا حَفْصُ بْنُ عُمَرَ، حَدَّثَنَا شُعْبَةُ، أَخْبَرَنِي يَعْلَى بْنُ عَطَاءٍ، عَنْ جَابِرِ بْنِ يَزِيدَ بْنِ الأَسْوَدِ، عَنْ أَبِيهِأَنَّهُ صَلَّى مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم وَهُوَ غُلاَمٌ شَابٌّ فَلَمَّا صَلَّى إِذَا رَجُلاَنِ لَمْ يُصَلِّيَا فِي نَاحِيَةِ الْمَسْجِدِ فَدَعَا بِهِمَا فَجِيءَ بِهِمَا تُرْعَدُ فَرَائِصُهُمَا فَقَالَ ‏"‏ مَا مَنَعَكُمَا أَنْ تُصَلِّيَا مَعَنَا ‏"‏ ‏.‏ قَالاَ قَدْ صَلَّيْنَا فِي رِحَالِنَا ‏.‏ فَقَالَ ‏"‏ لاَ تَفْعَلُواإِذَا صَلَّى أَحَدُكُمْ فِي رَحْلِهِ ثُمَّ أَدْرَكَ الإِمَامَ وَلَمْ يُصَلِّ فَلْيُصَلِّ مَعَهُ فَإِنَّهَا لَهُ نَافِلَةٌ ‏"‏ ‏.‏
Translation
Narrated Yazid ibn al-Aswad

Yazid prayed along with the Messenger of Allah (ﷺ) when he was a young boy. When he had prayed, behold, there were two men who did not pray in a corner of the mosque. He called for them, and they were brought with their shoulder muscles trembling. He said: "What prevented you from praying with us?" They replied: "We have already prayed in our quarters." He said: "Do not do that. When one of you prays in his quarters and then reaches the Imam while he has not prayed, let him pray with him, for it will be a supererogatory prayer for him."