It is narrated from Sayyiduna Wabisah bin Ma'bad (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) finished (the prayer) while a man was praying alone behind the people. He (peace and blessings be upon him) said (to him): "O you who pray alone, why did you not join the row so that you would be included with them (in the row), or, if the space was too tight for you, pull a man (from the row) towards yourself? Repeat your prayer, for you have no prayer." I (the author) say: Imam Abu Dawud, Imam al-Tirmidhi and Imam Ibn Majah recorded it with wording other than this context, and this hadith has no (other) chain like this one, and Allah knows best. Imam Ibn Hibban also recorded it in his Sahih.
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب افتتاح الصلاة / 1408