Ali bin Shayban reported,

We set out and came to the Prophet ﷺ, where we pledged allegiance to him and prayed behind him. Then we prayed another prayer behind him, and when he finished the prayer, he saw a man praying alone behind the row.The Prophet of Allah ﷺ stood over him when he had finished and said, "Repeat your prayer. There is no prayer for the one who prays behind the row alone."

Azami 2336

Sahih

عن علي بن شيبان، وكان من الوفد قال

خرجنا حتى قدمنا على النبي ﷺ فبايعناه، وصلينا خلفه، ثم صلينا وراءه صلاة أخرى، فقضى الصلاة. فرأى رجلا فردا يصلي خلف الصف قال: فوقف عليه نبي الله ﷺ الحين انصرف فقال: استقبل صلاتك، ولا صلاة للذي خلف الصف.

الأعظمي 2336صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Leadership
Section
Dislike of one who prays alone behind the row
Numbering
Jami al-Kamil 2336 (2nd edition)
Azami 2336