Sayyiduna Wabisah bin Ma'bad (may Allah be pleased with him) narrates: The Prophet (peace and blessings be upon him) finished the prayer and saw a man praying behind the people (standing alone in a row). The Prophet (peace and blessings be upon him) said: "O you who prays alone! Why did you not reach the row and join the people? And if the space was too tight for you, you should have pulled a man towards yourself. Now repeat your prayer, for your prayer has not counted." (Allamah al-Haythami says:) I say: A hadith of his is reported concerning a person who prays behind the row (standing alone); that hadith is recorded in the three Sunan, but it is different from this narration.
Abu Ya'la recorded it. Its chain contains a narrator, al-Sari bin Isma'il, who is da'if (weak).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الصلاة / 2538