Al-Ilmam bi-Ahadith al-Ahkam 294
وَعَن جَابر بن يزِيد بن الْأسود، عَن أَبِيه، قَالَ، قَالَ: " شهدتُ مَعَ النَّبِي ﷺ حجَّته، فَصليت مَعَه صَلَاة الصُّبْح فِي مَسْجِد الْخيف، فَلَمَّا قَضَى صلَاته فانحرف إِذا هُوَ برجلَيْن فِي أُخْرَى الْقَوْم لم يصليا مَعَه، فَقَالَ: عليَّ بهما، فجِئ بهما تُرعد فرائصهما، فَقَالَ مَا منعكما أَن تصليا مَعنا ؟ فَقَالَا: يَا رَسُول الله، إِنَّا قد كُنَّا صلينَا فِي رحالنا، فَقَالَ: فَلَا تفعلا، إِذا صليتما فِي رحالكما ﷺ ثمَّ أتيتما مَسْجِد جمَاعَة فَصَليَا مَعَهم، فَإِنَّهَا لَكمَا نَافِلَة ". أخرجه التِّرْمِذِيّ وَصَححهُ.
And from Jabir ibn Yazid ibn al-Aswad, from his father, who said: "I attended the Hajj of the Prophet ﷺ with him, and I prayed the Subh prayer with him in the mosque of al-Khayf. When he finished his prayer and turned around, there were two men at the back of the people who had not prayed with him. He said: 'Bring them to me.' They were brought, trembling with fear. He said: 'What prevented you from praying with us?' They said: 'O Messenger of Allah, we had already prayed in our dwellings.' He said: 'Do not do that. When you have prayed in your dwellings and then come to a mosque where there is a congregation, pray with them, for it will be a voluntary prayer for you.'" At-Tirmidhi recorded it and graded it sound.